Function at 0x4d697c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
xor eax, eax
xor edx, edx
xor ecx, ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ecx
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x2a], 0
mov byte [ebp - 0x2b], 0
mov byte [ebp - 0x2c], 0
xor eax, eax
lea ebx, [ebp - 0x128]
mov dword [ebp - 0x34], eax
xor eax, eax
mov esi, dword [ebp + 0x10]
add esi, dword [ebp + 0x18]
mov dword [ebp - 0x3c], eax
lea edx, [esi - 1]
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x4d6a08
cmp dword [ebp + 0xc], 0
jne 0x4d6a08
cmp dword [ebp + 0x10], 0
jne 0x4d6a08
cmp dword [ebp + 0x14], 0xfffffc19
jne 0x4d6a08
cmp dword [ebp + 0x18], 0xfffffc19
jne 0x4d6a08
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call fcn.004cc0c8
add esp, 0x1c
jmp 0x4d772c
test dword [ebp + 0x1c], 0xe20f5a6f
je 0x4d6a1b
mov eax, 0xfffffffd
jmp 0x4d772c
cmp dword [ebp - 0x48], 0
je 0x4d6a33
cmp dword [ebp + 0x10], 0
je 0x4d6a33
cmp dword [ebp + 0x20], 0
jne 0x4d6a3d
cmp dword [ebp + 0x24], 0
jle 0x4d6a3d
mov eax, 0xfffffffe
jmp 0x4d772c
cmp dword [ebp + 0x24], 0
jge 0x4d6a4d
mov eax, 0xfffffff1
jmp 0x4d772c
cmp dword [ebp + 0x14], 0
jge 0x4d6a5d
mov eax, 0xffffffe0
jmp 0x4d772c
cmp dword [ebp + 0x18], 0
jl 0x4d6a6b
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x14]
jle 0x4d6a75
mov eax, 0xffffffe8
jmp 0x4d772c
mov edx, dword [ebp - 0x48]
cmp dword [edx], 0x50435245
je 0x4d6a9f
mov ecx, dword [ebp - 0x48]
cmp dword [ecx], 0x45524350
jne 0x4d6a95
mov eax, 0xffffffe3
jmp 0x4d772c
mov eax, 0xfffffffc
jmp 0x4d772c
mov edx, dword [ebp - 0x48]
test byte [edx + 0xc], 1
jne 0x4d6ab2
mov eax, 0xffffffe4
jmp 0x4d772c
mov edx, dword [ebp - 0x48]
test byte [edx + 9], 8
setne cl
and ecx, 1
mov dword [ebx + 0x48], ecx
mov dword [ebp - 0x20], ecx
test byte [ebp + 0x1f], 8
je 0x4d6ad2
mov eax, 2
jmp 0x4d6ae1
test byte [ebp + 0x1d], 0x80
je 0x4d6adf
mov eax, 1
jmp 0x4d6ae1
xor eax, eax
mov dword [ebx + 0x88], eax
cmp dword [ebp - 0x20], 0
je 0x4d6b83
test byte [ebp + 0x1d], 0x20
jne 0x4d6b83
lea edx, [ebp - 0x4c]
push edx
mov ecx, dword [ebp + 0x14]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004d7dbc
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x4d6b52
cmp dword [ebp + 0x24], 2
jl 0x4d6b2f
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x50]
mov dword [eax + 4], edx
cmp dword [ebp - 0x50], 5
jg 0x4d6b48
cmp dword [ebx + 0x88], 1
jle 0x4d6b48
mov eax, 0xffffffe7
jmp 0x4d772c
mov eax, 0xfffffff6
jmp 0x4d772c
cmp dword [ebp + 0x18], 0
jle 0x4d6b83
mov edx, dword [ebp + 0x18]
cmp edx, dword [ebp + 0x14]
jge 0x4d6b83
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
xor edx, edx
mov dl, byte [ecx + eax]
and edx, 0xc0
cmp edx, 0x80
jne 0x4d6b83
mov eax, 0xfffffff5
jmp 0x4d772c
mov edx, dword [ebp - 0x48]
movzx ecx, word [edx + 0x18]
add ecx, dword [ebp - 0x48]
mov dword [ebx + 0x28], ecx
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x1c]
mov dword [ebx + 0x20], edx
xor edx, edx
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x1a]
mov dword [ebx + 0x24], eax
mov dword [ebp - 0x44], edx
mov dword [ebx + 4], 0x989680
mov dword [ebx + 8], 0x989680
xor ecx, ecx
mov dword [ebx + 0xa8], ecx
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 0x20]
mov dword [ebp - 0x30], edx
cmp dword [ebp + 0xc], 0
je 0x4d6c24
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
test byte [ebp - 0x54], 1
je 0x4d6be5
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x44], ecx
test byte [ebp - 0x54], 2
je 0x4d6bf4
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov dword [ebx + 4], edx
test byte [ebp - 0x54], 0x10
je 0x4d6c03
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x14]
mov dword [ebx + 8], eax
test byte [ebp - 0x54], 4
je 0x4d6c15
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0xc]
mov dword [ebx + 0xa8], ecx
test byte [ebp - 0x54], 8
je 0x4d6c24
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x30], 0
jne 0x4d6c31
mov dword [ebp - 0x30], 0x5b1b98
mov ecx, dword [ebp - 0x48]
mov eax, dword [ecx + 8]
or eax, dword [ebp + 0x1c]
test al, 0x10
setne dl
and edx, 1
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x48]
test byte [ecx + 0xd], 1
setne al
and eax, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x48]
test byte [edx + 0xa], 4
setne cl
and ecx, 1
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x48]
movzx edx, word [eax + 0x1c]
movzx eax, word [ecx + 0x1a]
imul edx, eax
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x18]
add eax, dword [ebp - 0x48]
add edx, eax
mov dword [ebx + 0x70], edx
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x74], edx
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x94], ecx
mov eax, dword [ebx + 0x74]
add eax, dword [ebp + 0x14]
mov dword [ebx + 0x78], eax
mov edx, dword [ebx + 0x78]
mov dword [ebp - 0x38], edx
mov ecx, dword [ebp - 0x48]
test byte [ecx + 8], 0x20
setne al
and eax, 1
mov dword [ebx + 0x54], eax
mov edx, dword [ebp - 0x48]
test byte [edx + 0xb], 0x20
setne cl
and ecx, 1
mov dword [ebx + 0x50], ecx
mov eax, dword [ebp - 0x48]
test byte [eax + 0xb], 2
setne dl
and edx, 1
xor ecx, ecx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x6c], ecx
test byte [ebp + 0x1c], 0x80
setne al
and eax, 1
mov dword [ebx + 0x40], eax
test byte [ebp + 0x1d], 1
setne dl
and edx, 1
mov dword [ebx + 0x44], edx
test byte [ebp + 0x1d], 4
setne cl
and ecx, 1
mov dword [ebx + 0x58], ecx
test byte [ebp + 0x1f], 0x10
setne al
and eax, 1
xor edx, edx
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], edx
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0xb0], ecx
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xa4], eax
mov edx, dword [ebp - 0x48]
test byte [edx + 0xd], 0x10
setne al
and eax, 1
mov dword [ebx + 0x68], eax
mov edx, dword [ebp - 0x30]
mov dword [ebx + 0x30], edx
mov ecx, dword [ebp - 0x30]
add ecx, 0x100
mov dword [ebx + 0x34], ecx
mov eax, dword [ebp - 0x30]
add eax, 0x340
mov dword [ebx + 0x38], eax
mov edx, dword [ebp + 0x1c]
and edx, 0x1800000
sub edx, 1
jb 0x4d6d74
sub edx, 0x7fffff
je 0x4d6d99
sub edx, 0x800000
je 0x4d6da2
jmp 0x4d6da9
mov ecx, dword [ebp - 0x48]
test dword [ecx + 8], 0x1800000
je 0x4d6d92
mov eax, dword [ebp - 0x48]
test byte [eax + 0xa], 0x80
setne dl
and edx, 1
mov dword [ebx + 0x64], edx
jmp 0x4d6db3
xor ecx, ecx
mov dword [ebx + 0x64], ecx
jmp 0x4d6db3
mov dword [ebx + 0x64], 1
jmp 0x4d6db3
xor eax, eax
mov dword [ebx + 0x64], eax
jmp 0x4d6db3
mov eax, 0xffffffe9
jmp 0x4d772c
test byte [ebp + 0x1e], 0x70
jne 0x4d6dc1
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + 8]
jmp 0x4d6dc4
mov ecx, dword [ebp + 0x1c]
and ecx, 0x700000
cmp ecx, 0x300000
jg 0x4d6deb
je 0x4d6e18
sub ecx, 1
jb 0x4d6dfd
sub ecx, 0xfffff
je 0x4d6e06
sub ecx, 0x100000
je 0x4d6e0f
jmp 0x4d6e33
sub ecx, 0x400000
je 0x4d6e21
sub ecx, 0x100000
je 0x4d6e2a
jmp 0x4d6e33
mov dword [ebp - 0xc], 0xa
jmp 0x4d6e3d
mov dword [ebp - 0xc], 0xd
jmp 0x4d6e3d
mov dword [ebp - 0xc], 0xa
jmp 0x4d6e3d
mov dword [ebp - 0xc], 0xd0a
jmp 0x4d6e3d
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4d6e3d
mov dword [ebp - 0xc], 0xfffffffe
jmp 0x4d6e3d
mov eax, 0xffffffe9
jmp 0x4d772c
cmp dword [ebp - 0xc], 0xfffffffe
jne 0x4d6e4c
mov dword [ebx + 0x18], 2
jmp 0x4d6e93
cmp dword [ebp - 0xc], 0
jge 0x4d6e5b
mov dword [ebx + 0x18], 1
jmp 0x4d6e93
xor edx, edx
mov dword [ebx + 0x18], edx
cmp dword [ebp - 0xc], 0xff
jle 0x4d6e86
mov dword [ebx + 0x1c], 2
mov eax, dword [ebp - 0xc]
sar eax, 8
and al, 0xff
mov byte [ebx + 0x2c], al
mov dl, byte [ebp - 0xc]
and dl, 0xff
mov byte [ebx + 0x2d], dl
jmp 0x4d6e93
mov dword [ebx + 0x1c], 1
mov cl, byte [ebp - 0xc]
mov byte [ebx + 0x2c], cl
cmp dword [ebx + 0x88], 0
je 0x4d6eaf
mov eax, dword [ebp - 0x48]
test byte [eax + 0xd], 2
je 0x4d6eaf
mov eax, 0xfffffff3
jmp 0x4d772c
mov eax, dword [ebp + 0x24]
mov ecx, 3
cdq
idiv ecx
mov eax, dword [ebp + 0x24]
sub eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x48]
cmp word [eax + 0x12], 0
jbe 0x4d6f2c
mov eax, dword [ebp - 4]
mov ecx, 3
cdq
idiv ecx
mov edx, dword [ebp - 0x48]
movzx ecx, word [edx + 0x12]
cmp eax, ecx
jg 0x4d6f2c
mov eax, dword [ebp - 0x48]
movzx eax, word [eax + 0x12]
lea edx, [eax + eax*2]
add edx, 3
mov dword [ebp - 4], edx
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
call dword [0x5b2f3c]
pop ecx
mov dword [ebx + 0xc], eax
cmp dword [ebx + 0xc], 0
jne 0x4d6f23
mov eax, 0xfffffffa
jmp 0x4d772c
mov dword [ebp - 0x10], 1
jmp 0x4d6f32
mov edx, dword [ebp + 0x20]
mov dword [ebx + 0xc], edx
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x10], ecx
mov eax, dword [ebp - 4]
add eax, eax
mov ecx, 3
cdq
idiv ecx
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x90], 0xffffffff
cmp dword [ebx + 0xc], 0
je 0x4d6fb4
mov edx, dword [ebp - 4]
shl edx, 2
add edx, dword [ebx + 0xc]
mov dword [ebp - 0x58], edx
mov ecx, dword [ebp - 0x48]
movzx eax, word [ecx + 0x10]
shl eax, 2
mov edx, dword [ebp - 0x58]
sub edx, eax
mov dword [ebp - 0x5c], edx
mov ecx, dword [ebx + 0xc]
add ecx, 8
cmp ecx, dword [ebp - 0x5c]
jbe 0x4d6f9a
mov eax, dword [ebx + 0xc]
add eax, 8
mov dword [ebp - 0x5c], eax
jmp 0x4d6f9a
mov edx, dword [ebp - 0x58]
mov dword [edx], 0xffffffff
sub dword [ebp - 0x58], 4
mov ecx, dword [ebp - 0x58]
cmp ecx, dword [ebp - 0x5c]
jae 0x4d6f91
mov eax, dword [ebx + 0xc]
or edx, 0xffffffff
mov dword [eax + 4], edx
mov eax, dword [ebx + 0xc]
mov dword [eax], edx
cmp dword [ebp - 0x14], 0
jne 0x4d700d
mov ecx, dword [ebp - 0x48]
test byte [ecx + 0xc], 0x10
je 0x4d6fef
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x48]
mov dl, byte [eax + 0x14]
mov byte [ebp - 0x2a], dl
mov byte [ebp - 0x29], dl
mov eax, dword [ebp - 0x48]
test byte [eax + 0xc], 0x20
je 0x4d700d
xor ecx, ecx
mov cl, byte [ebp - 0x29]
mov eax, dword [ebx + 0x34]
mov dl, byte [eax + ecx]
mov byte [ebp - 0x2a], dl
jmp 0x4d700d
cmp dword [ebp - 0x18], 0
jne 0x4d700d
cmp dword [ebp - 0x44], 0
je 0x4d700d
mov ecx, dword [ebp - 0x44]
test byte [ecx + 4], 1
je 0x4d700d
mov eax, dword [ebp - 0x44]
add eax, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x48]
test byte [edx + 0xc], 0x40
je 0x4d7040
mov dword [ebp - 0x28], 1
mov ecx, dword [ebp - 0x48]
mov al, byte [ecx + 0x16]
mov byte [ebp - 0x2c], al
mov byte [ebp - 0x2b], al
mov edx, dword [ebp - 0x48]
test byte [edx + 0xc], 0x80
je 0x4d7040
xor ecx, ecx
mov cl, byte [ebp - 0x2b]
mov eax, dword [ebx + 0x34]
mov dl, byte [eax + ecx]
mov byte [ebp - 0x2c], dl
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x1c], 0
je 0x4d714d
cmp dword [ebp - 0x20], 0
mov edi, esi
je 0x4d70e6
jmp 0x4d7077
inc edi
jmp 0x4d7062
inc edi
cmp edi, dword [ebp - 0x38]
jae 0x4d7077
xor eax, eax
mov al, byte [edi]
and eax, 0xc0
cmp eax, 0x80
je 0x4d7061
cmp edi, dword [ebx + 0x78]
jae 0x4d714a
cmp dword [ebx + 0x18], 0
je 0x4d70b3
cmp edi, dword [ebx + 0x78]
jae 0x4d70a8
mov edx, dword [ebp - 0x20]
lea ecx, [ebx + 0x1c]
push edx
push ecx
mov eax, dword [ebx + 0x78]
push eax
mov edx, dword [ebx + 0x18]
push edx
push edi
call fcn.004d7994
add esp, 0x14
test eax, eax
jne 0x4d70ac
xor ecx, ecx
jmp 0x4d70db
mov ecx, 1
jmp 0x4d70db
mov eax, dword [ebx + 0x78]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x4d70d2
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x4d70d2
cmp dword [ebx + 0x1c], 1
je 0x4d70d6
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4d70d6
xor ecx, ecx
jmp 0x4d70db
mov ecx, 1
test ecx, ecx
je 0x4d705e
jmp 0x4d714a
inc edi
cmp edi, dword [ebx + 0x78]
jae 0x4d714a
cmp dword [ebx + 0x18], 0
je 0x4d711e
cmp edi, dword [ebx + 0x78]
jae 0x4d7113
mov eax, dword [ebp - 0x20]
lea edx, [ebx + 0x1c]
push eax
push edx
mov eax, dword [ebx + 0x78]
push eax
mov edx, dword [ebx + 0x18]
push edx
push edi
call fcn.004d7994
add esp, 0x14
test eax, eax
jne 0x4d7117
xor ecx, ecx
jmp 0x4d7146
mov ecx, 1
jmp 0x4d7146
mov eax, dword [ebx + 0x78]
sub eax, dword [ebx + 0x1c]
cmp edi, eax
ja 0x4d713d
mov dl, byte [edi]
cmp dl, byte [ebx + 0x2c]
jne 0x4d713d
cmp dword [ebx + 0x1c], 1
je 0x4d7141
mov cl, byte [edi + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4d7141
xor ecx, ecx
jmp 0x4d7146
mov ecx, 1
test ecx, ecx
je 0x4d70e5
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0x48]
mov edx, dword [eax + 8]
or edx, dword [ebp + 0x1c]
test edx, 0x4000000
jne 0x4d7337
cmp dword [ebp - 0x24], 0
je 0x4d71a7
mov al, byte [ebp - 0x29]
cmp al, byte [ebp - 0x2a]
je 0x4d7192
jmp 0x4d7173
inc esi
cmp esi, dword [ebp - 0x38]
jae 0x4d7337
mov al, byte [esi]
cmp al, byte [ebp - 0x29]
je 0x4d7337
cmp al, byte [ebp - 0x2a]
jne 0x4d7172
jmp 0x4d7337
inc esi
cmp esi, dword [ebp - 0x38]
jae 0x4d7337
mov dl, byte [esi]
cmp dl, byte [ebp - 0x29]
jne 0x4d7191
jmp 0x4d7337
cmp dword [ebp - 0x18], 0
je 0x4d72e8
mov ecx, dword [ebx + 0x74]
add ecx, dword [ebp + 0x18]
cmp esi, ecx
jbe 0x4d7337
cmp dword [ebp - 0x20], 0
je 0x4d725c
jmp 0x4d71e4
inc esi
jmp 0x4d71cf
inc esi
cmp esi, dword [ebp - 0x38]
jae 0x4d71e4
xor eax, eax
mov al, byte [esi]
and eax, 0xc0
cmp eax, 0x80
je 0x4d71ce
cmp esi, dword [ebp - 0x38]
jae 0x4d72c9
cmp dword [ebx + 0x18], 0
je 0x4d721f
mov edi, dword [ebx + 0x74]
cmp esi, edi
jbe 0x4d7214
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebx + 0x1c]
push edx
push edi
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.004d7b74
add esp, 0x14
test eax, eax
jne 0x4d7218
xor eax, eax
jmp 0x4d7251
mov eax, 1
jmp 0x4d7251
mov edx, dword [ebx + 0x74]
add edx, dword [ebx + 0x1c]
cmp esi, edx
jb 0x4d7248
mov ecx, esi
sub ecx, dword [ebx + 0x1c]
mov al, byte [ecx]
cmp al, byte [ebx + 0x2c]
jne 0x4d7248
cmp dword [ebx + 0x1c], 1
je 0x4d724c
mov edx, esi
sub edx, dword [ebx + 0x1c]
mov cl, byte [edx + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4d724c
xor eax, eax
jmp 0x4d7251
mov eax, 1
test eax, eax
je 0x4d71cb
jmp 0x4d72c9
inc esi
cmp esi, dword [ebp - 0x38]
jae 0x4d72c9
cmp dword [ebx + 0x18], 0
je 0x4d7293
mov edi, dword [ebx + 0x74]
cmp esi, edi
jbe 0x4d7288
mov eax, dword [ebp - 0x20]
push eax
lea edx, [ebx + 0x1c]
push edx
push edi
mov ecx, dword [ebx + 0x18]
push ecx
push esi
call fcn.004d7b74
add esp, 0x14
test eax, eax
jne 0x4d728c
xor eax, eax
jmp 0x4d72c5
mov eax, 1
jmp 0x4d72c5
mov edx, dword [ebx + 0x74]
add edx, dword [ebx + 0x1c]
cmp esi, edx
jb 0x4d72bc
mov ecx, esi
sub ecx, dword [ebx + 0x1c]
mov al, byte [ecx]
cmp al, byte [ebx + 0x2c]
jne 0x4d72bc
cmp dword [ebx + 0x1c], 1
je 0x4d72c0
mov edx, esi
sub edx, dword [ebx + 0x1c]
mov cl, byte [edx + 1]
cmp cl, byte [ebx + 0x2d]
je 0x4d72c0
xor eax, eax
jmp 0x4d72c5
mov eax, 1
test eax, eax
je 0x4d725b
cmp byte [esi - 1], 0xd
jne 0x4d7337
cmp dword [ebx + 0x18], 1
je 0x4d72db
cmp dword [ebx + 0x18], 2
jne 0x4d7337
cmp esi, dword [ebp - 0x38]
jae 0x4d7337
cmp byte [esi], 0xa
jne 0x4d7337
inc esi
jmp 0x4d7337
cmp dword [ebp - 0x34], 0
je 0x4d7337
cmp esi, dword [ebp - 0x38]
jae 0x4d7337
xor eax, eax
mov al, byte [esi]
mov ecx, eax
and ecx, 7
mov edx, 1
shl edx, cl
shr eax, 3
mov ecx, dword [ebp - 0x34]
movzx eax, byte [ecx + eax]
and edx, eax
jne 0x4d7337
inc esi
cmp dword [ebp - 0x20], 0
je 0x4d7332
jmp 0x4d731b
inc esi
cmp esi, dword [ebp - 0x38]
jae 0x4d7332
xor edx, edx
mov dl, byte [esi]
and edx, 0xc0
cmp edx, 0x80
je 0x4d731a
cmp esi, dword [ebp - 0x38]
jb 0x4d72f3
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x48]
mov ecx, dword [edx + 8]
or ecx, dword [ebp + 0x1c]
test ecx, 0x4000000
jne 0x4d73fc
cmp dword [ebx + 0x88], 0
jne 0x4d73fc
cmp dword [ebp - 0x44], 0
je 0x4d7382
mov eax, dword [ebp - 0x44]
test byte [eax + 4], 2
je 0x4d7382
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x38]
sub edx, esi
cmp edx, dword [ecx + 0x28]
jae 0x4d7382
xor edi, edi
jmp 0x4d7588
cmp dword [ebp - 0x28], 0
je 0x4d73fc
mov eax, dword [ebp - 0x38]
sub eax, esi
cmp eax, 0x3e8
jge 0x4d73fc
cmp dword [ebp - 0x24], 0
je 0x4d73a1
mov eax, 1
jmp 0x4d73a3
xor eax, eax
add eax, esi
cmp eax, dword [ebp - 0x40]
jbe 0x4d73fc
mov dl, byte [ebp - 0x2b]
cmp dl, byte [ebp - 0x2c]
je 0x4d73d8
cmp eax, dword [ebp - 0x38]
jae 0x4d73ed
xor edx, edx
xor ecx, ecx
mov dl, byte [eax]
inc eax
mov cl, byte [ebp - 0x2b]
cmp edx, ecx
je 0x4d73ce
xor ecx, ecx
mov cl, byte [ebp - 0x2c]
cmp edx, ecx
jne 0x4d73d1
dec eax
jmp 0x4d73ed
cmp eax, dword [ebp - 0x38]
jb 0x4d73b7
jmp 0x4d73ed
cmp eax, dword [ebp - 0x38]
jae 0x4d73ed
mov dl, byte [eax]
inc eax
cmp dl, byte [ebp - 0x2b]
jne 0x4d73e8
dec eax
jmp 0x4d73ed
cmp eax, dword [ebp - 0x38]
jb 0x4d73dd
cmp eax, dword [ebp - 0x38]
jb 0x4d73f9
xor edi, edi
jmp 0x4d7588
mov dword [ebp - 0x40], eax
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x84], esi
xor eax, eax
mov dword [ebx], eax
xor edx, edx
mov dword [ebx + 0x98], edx
xor ecx, ecx
mov dword [ebx + 0x8c], ecx
push 0
push 0
push ebx
push 2
push esi
mov eax, dword [ebx + 0x70]
push eax
push esi
call fcn.004cc0c8
add esp, 0x1c
mov edi, eax
cmp dword [ebx + 0x60], 0
je 0x4d7445
cmp dword [ebp - 0x3c], 0
jne 0x4d7445
mov eax, dword [ebx + 0x84]
mov dword [ebp - 0x3c], eax
mov edx, edi
cmp edx, 0xfffffc1f
jg 0x4d7466
je 0x4d747b
sub edx, 0xfffffc1a
je 0x4d74c9
sub edx, 3
je 0x4d7494
dec edx
je 0x4d7487
jmp 0x4d7588
sub edx, 0xfffffc20
je 0x4d7494
sub edx, 0x3e0
je 0x4d7494
jmp 0x4d7588
mov dword [ebp - 0x64], esi
mov dword [ebx + 0x6c], 1
jmp 0x4d74d0
cmp esi, dword [ebx + 0x7c]
je 0x4d7494
mov ecx, dword [ebx + 0x7c]
mov dword [ebp - 0x64], ecx
jmp 0x4d74d0
xor eax, eax
lea edx, [esi + 1]
mov dword [ebx + 0x6c], eax
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x20], 0
je 0x4d74d0
jmp 0x4d74aa
inc dword [ebp - 0x64]
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x38]
jae 0x4d74d0
mov eax, dword [ebp - 0x64]
xor edx, edx
mov dl, byte [eax]
and edx, 0xc0
cmp edx, 0x80
je 0x4d74a7
jmp 0x4d74d0
xor edi, edi
jmp 0x4d7588
xor edi, edi
cmp dword [ebp - 0x1c], 0
je 0x4d7537
cmp dword [ebx + 0x18], 0
je 0x4d750b
cmp esi, dword [ebx + 0x78]
jae 0x4d7500
mov eax, dword [ebp - 0x20]
lea edx, [ebx + 0x1c]
push eax
push edx
mov ecx, dword [ebx + 0x78]
push ecx
mov eax, dword [ebx + 0x18]
push eax
push esi
call fcn.004d7994
add esp, 0x14
test eax, eax
jne 0x4d7504
xor edx, edx
jmp 0x4d7533
mov edx, 1
jmp 0x4d7533
mov ecx, dword [ebx + 0x78]
sub ecx, dword [ebx + 0x1c]
cmp esi, ecx
ja 0x4d752a
mov al, byte [esi]
cmp al, byte [ebx + 0x2c]
jne 0x4d752a
cmp dword [ebx + 0x1c], 1
je 0x4d752e
mov dl, byte [esi + 1]
cmp dl, byte [ebx + 0x2d]
je 0x4d752e
xor edx, edx
jmp 0x4d7533
mov edx, 1
test edx, edx
jne 0x4d7588
cmp dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x64]
jne 0x4d7588
cmp esi, dword [ebp - 0x38]
ja 0x4d7588
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x4d757b
cmp byte [esi - 1], 0xd
jne 0x4d757b
cmp esi, dword [ebp - 0x38]
jae 0x4d757b
cmp byte [esi], 0xa
jne 0x4d757b
mov edx, dword [ebp - 0x48]
test byte [edx + 0xd], 8
jne 0x4d757b
cmp dword [ebx + 0x18], 1
je 0x4d757a
cmp dword [ebx + 0x18], 2
je 0x4d757a
cmp dword [ebx + 0x1c], 2
jne 0x4d757b
inc esi
xor ecx, ecx
mov dword [ebx + 0xac], ecx
jmp 0x4d7040
cmp edi, 1
je 0x4d7599
cmp edi, 0xfffffc19
jne 0x4d76bb
cmp dword [ebp - 0x10], 0
je 0x4d75e2
cmp dword [ebp - 8], 4
jl 0x4d75c5
mov eax, dword [ebp - 8]
add eax, 0xfffffffe
shl eax, 2
push eax
mov edx, dword [ebx + 0xc]
add edx, 8
push edx
mov ecx, dword [ebp + 0x20]
add ecx, 8
push ecx
call fcn.004e0828
add esp, 0xc
mov eax, dword [ebx + 0x8c]
cmp eax, dword [ebp - 8]
jle 0x4d75d7
mov dword [ebx + 0x3c], 1
mov edx, dword [ebx + 0xc]
push edx
call dword [0x5b2f40]
pop ecx
cmp dword [ebx + 0x3c], 0
je 0x4d75f7
mov ecx, dword [ebx + 0x8c]
cmp ecx, dword [ebp - 8]
jl 0x4d75f7
xor edi, edi
jmp 0x4d7604
mov edi, dword [ebx + 0x8c]
sar edi, 1
jns 0x4d7604
adc edi, 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebx + 0x8c]
sar ecx, 1
movzx edx, word [eax + 0x10]
jns 0x4d7618
adc ecx, 0
cmp edx, ecx
jl 0x4d7677
cmp dword [ebp + 0x20], 0
je 0x4d7677
mov eax, dword [ebp - 0x48]
movzx edx, word [eax + 0x10]
add edx, edx
add edx, 2
mov dword [ebp - 0x70], edx
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp + 0x24]
jle 0x4d763f
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov edx, dword [ebx + 0x8c]
shl edx, 2
add edx, dword [ebp + 0x20]
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x70]
shl ecx, 2
add ecx, dword [ebp + 0x20]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x6c]
jae 0x4d7677
mov edx, dword [ebp - 0x68]
mov dword [edx], 0xffffffff
add dword [ebp - 0x68], 4
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [ebp - 0x6c]
jb 0x4d7662
cmp dword [ebp + 0x24], 2
jge 0x4d7681
xor edi, edi
jmp 0x4d769b
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebp + 0x20]
sub eax, dword [ebx + 0x74]
mov dword [edx], eax
mov ecx, dword [ebx + 0x80]
mov eax, dword [ebp + 0x20]
sub ecx, dword [ebx + 0x74]
mov dword [eax + 4], ecx
cmp dword [ebp + 0xc], 0
je 0x4d76b7
mov edx, dword [ebp + 0xc]
test byte [edx], 0x20
je 0x4d76b7
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x18]
mov edx, dword [ebx + 0xac]
mov dword [eax], edx
mov eax, edi
jmp 0x4d772c
cmp dword [ebp - 0x10], 0
je 0x4d76cc
mov edx, dword [ebx + 0xc]
push edx
call dword [0x5b2f40]
pop ecx
test edi, edi
je 0x4d76d9
cmp edi, 0xfffffff4
je 0x4d76d9
mov eax, edi
jmp 0x4d772c
cmp dword [ebp - 0x3c], 0
je 0x4d770b
xor edx, edx
mov dword [ebx + 0xac], edx
cmp dword [ebp + 0x24], 1
jle 0x4d7704
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x20]
sub ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 0x20]
sub edx, dword [ebp + 0x10]
mov dword [ecx + 4], edx
mov edi, 0xfffffff4
jmp 0x4d770e
or edi, 0xffffffff
cmp dword [ebp + 0xc], 0
je 0x4d772a
mov eax, dword [ebp + 0xc]
test byte [eax], 0x20
je 0x4d772a
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x18]
mov eax, dword [ebx + 0xb0]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret