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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, dword [0x4c0e18]
push esi
push edi
mov esi, eax
mov al, 1
cmp al, byte [ecx + 1]
mov ecx, dword [0x4c17f0]
push 1
push 0
sbb edi, edi
and edi, dword [0x4c0e1c]
push 0xffffffffffffffff
push 0x49e734
mov dword [esp + 0x90], ebx
mov dword [esp + 0x98], edi
call fcn.0046e960
test ebx, ebx
je 0x437d8b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, ebx
call fcn.0046e960
xor ebx, ebx
cmp edi, ebx
je 0x437d9e
push 1
push ebx
push 0xffffffffffffffff
push ebx
mov ecx, edi
call fcn.0046e960
mov edx, dword [0x4bd41c]
xor eax, eax
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
test byte [edx + 0xe8], 1
jne 0x437ded
lea eax, [esp + 0x70]
push eax
call dword [0x4995f8]
push eax
call dword [0x4995c0]
test eax, eax
je 0x43812d
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
add dword [ebp + 8], eax
add dword [ebp + 0xc], ecx
add dword [ebp + 0x10], eax
add dword [ebp + 0x14], ecx
push 0x2e
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.004889f0
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x437e65
add edi, 2
push 0x4a4864
push edi
call fcn.00486f39
add esp, 8
test eax, eax
je 0x437e4f
push 0x4a486c
push edi
call fcn.00486f39
add esp, 8
test eax, eax
je 0x437e4f
push 0x4a4874
push edi
call fcn.00486f39
add esp, 8
test eax, eax
jne 0x437e65
mov edi, dword [0x4994b0]
push 0x31
call edi
push 0x32
mov dword [esp + 0x20], eax
call edi
mov dword [esp + 0x20], eax
mov edi, esi
movzx eax, word [edi]
cmp eax, 0x20
je 0x437e74
cmp eax, 9
jne 0x437e79
add edi, 2
jmp 0x437e67
cmp word [edi], 0x2a
jne 0x4380ec
movzx ecx, word [edi + 2]
add edi, 2
push ecx
call fcn.00488e08
movzx eax, ax
add esp, 4
cmp eax, 0x48
je 0x43800c
cmp eax, 0x57
je 0x437fdc
push 4
push 0x49f060
push edi
call fcn.00487772
add esp, 0xc
test eax, eax
jne 0x437eee
add edi, 8
mov eax, edi
call fcn.0040d5b0
test al, al
je 0x437edf
push 0x10
push ebx
push edi
call fcn.0048855b
add esp, 0xc
mov dword [esp + 0x2c], eax
jmp 0x43807d
push edi
call fcn.004881c6
mov dword [esp + 0x30], eax
jmp 0x43807a
push 5
push 0x4a4090
push edi
call fcn.00487772
add esp, 0xc
test eax, eax
jne 0x437f8d
push 0x1f
add edi, 0xa
lea edx, [esp + 0xa4]
push edi
push edx
call fcn.00489924
xor eax, eax
mov word [esp + 0xea], ax
add esp, 0xc
mov ebx, 0x49e6d0
lea eax, [esp + 0xa0]
call fcn.00409c70
test eax, eax
je 0x437f40
xor ecx, ecx
mov word [eax], cx
lea esi, [esp + 0xa0]
call fcn.0046d060
cmp eax, 0xffffffff
jne 0x437f69
push 0x10
mov edx, esi
push 0
push edx
call fcn.0048855b
add esp, 0xc
mov dword [esp + 0x24], eax
jmp 0x43807d
mov ecx, eax
shr ecx, 8
movzx edx, al
movzx ecx, cl
shl edx, 8
shr eax, 0x10
or ecx, edx
movzx eax, al
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
jmp 0x43807d
mov eax, edi
call fcn.0040d5b0
test al, al
je 0x437faa
push 0x10
push ebx
push edi
call fcn.0048855b
add esp, 0xc
mov dword [esp + 0x10], eax
jmp 0x437fb7
push edi
call fcn.004881c6
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
jge 0x437fc4
mov dword [esp + 0x10], ebx
jmp 0x43807d
cmp eax, 0xff
jle 0x43807d
mov dword [esp + 0x10], 0xff
jmp 0x43807d
lea ebx, [edi + 2]
mov eax, ebx
call fcn.0040d5b0
test al, al
je 0x438000
push 0x10
push 0
push ebx
call fcn.0048855b
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x43807d
push ebx
call fcn.004881c6
mov dword [esp + 0x20], eax
jmp 0x43807a
lea esi, [edi + 2]
mov eax, esi
movzx ecx, word [eax]
cmp ecx, 0x20
je 0x43801e
cmp ecx, 9
jne 0x438023
add eax, 2
jmp 0x438011
movzx ecx, word [eax]
test cx, cx
je 0x438070
cmp ecx, 0x2d
je 0x438035
cmp ecx, 0x2b
jne 0x438038
add eax, 2
cmp word [eax], 0x30
jne 0x438070
movzx ecx, word [eax + 2]
cmp ecx, 0x78
je 0x43804c
cmp ecx, 0x58
jne 0x438070
movzx ecx, word [eax + 4]
push ecx
call fcn.00488369
add esp, 4
test eax, eax
je 0x438070
push 0x10
push 0
push esi
call fcn.0048855b
add esp, 0xc
mov dword [esp + 0x20], eax
jmp 0x43807d
push esi
call fcn.004881c6
mov dword [esp + 0x24], eax
add esp, 4
xor ebx, ebx
cmp edi, ebx
je 0x43812d
movzx eax, word [edi]
cmp ax, bx
je 0x43812d
movzx edx, ax
mov ecx, 0x49e6d0
mov eax, 0x20
cmp dx, ax
je 0x4380cb
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, bx
jne 0x4380a0
movzx eax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x438093
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 2]
mov edi, esi
movzx eax, word [edi]
cmp eax, 0x20
je 0x4380dd
cmp eax, 9
jne 0x4380e2
add edi, 2
jmp 0x4380d0
cmp word [edi], 0x2a
je 0x437e83
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
push ebx
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
push ecx
push edx
push esi
call fcn.0046d4b0
mov edi, eax
add esp, 0x18
mov dword [esp + 0x60], edi
cmp edi, ebx
je 0x43812d
push 0
call dword [0x499470]
mov ebx, eax
mov dword [esp + 0x4c], ebx
test ebx, ebx
jne 0x43813b
push edi
call dword [0x4990f0]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [0x4990f0]
xor eax, eax
cmp dword [esp + 0x38], 1
mov dword [esp + 0x64], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x68], eax
mov byte [esp + 0xd], al
jne 0x4381c7
lea eax, [esp + 0x8c]
push eax
push edi
call dword [0x499450]
test eax, eax
je 0x4381b0
push 1
lea ecx, [esp + 0x12]
push ecx
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x48]
push eax
push ecx
mov eax, ebx
call fcn.00437440
mov edx, dword [esp + 0xb0]
add esp, 0x14
push edx
mov dword [esp + 0x34], eax
call esi
mov eax, dword [esp + 0x98]
push eax
call esi
push edi
call fcn.0046dc40
mov edi, eax
add esp, 4
mov dword [esp + 0x60], edi
test edi, edi
je 0x43812d
push 8
lea ecx, [esp + 0x12]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x48]
push eax
push edi
mov eax, ebx
call fcn.00437440
add esp, 0x14
mov dword [esp + 0x34], eax
test eax, eax
je 0x438427
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x4c]
sub edi, dword [ebp + 8]
sub ebx, dword [ebp + 0xc]
push ecx
inc edi
inc ebx
call dword [0x4990b4]
mov esi, eax
mov dword [esp + 0x64], esi
test esi, esi
je 0x438427
mov edx, dword [esp + 0x4c]
push ebx
push edi
push edx
call dword [0x4990a8]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x438427
push eax
push esi
call dword [0x4990d8]
mov dword [esp + 0x68], eax
test eax, eax
je 0x438427
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x4c]
push 0xcc0020
push ecx
push edx
push eax
push ebx
push edi
push 0
push 0
push esi
call dword [0x4990a4]
test eax, eax
je 0x438427
push 8
lea ecx, [esp + 0x13]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
mov eax, esi
call fcn.00437440
mov edi, eax
add esp, 0x14
mov dword [esp + 0x20], edi
test edi, edi
je 0x438427
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
imul ecx, dword [esp + 0x48]
imul edx, dword [esp + 0x58]
cmp byte [esp + 0xe], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], edx
jne 0x4382c0
cmp byte [esp + 0xf], 0
je 0x4382fe
cmp dword [esp + 0x24], 0xffffffff
je 0x4382cf
and dword [esp + 0x24], 0xf8f8f8
xor eax, eax
test edx, edx
jle 0x4382e1
and dword [edi + eax*4], 0xf8f8f8
inc eax
cmp eax, edx
jl 0x4382d5
mov esi, dword [esp + 0x34]
xor eax, eax
test ecx, ecx
jle 0x438319
jmp 0x4382f0
and dword [esi + eax*4], 0xf8f8f8
inc eax
cmp eax, ecx
jl 0x4382f0
jmp 0x438302
mov esi, dword [esp + 0x34]
test ecx, ecx
jle 0x438319
lea eax, [esi + 3]
lea esp, [esp]
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x438310
mov ebx, dword [esp + 0x10]
cmp ebx, 1
jge 0x438539
test edx, edx
jle 0x438339
lea eax, [edi + 3]
mov ecx, edx
nop
mov byte [eax], 0
add eax, 4
dec ecx
jne 0x438330
xor edi, edi
mov dword [esp + 0x18], edi
test edx, edx
jle 0x438723
mov ebx, dword [esi]
mov dword [esp + 0x38], ebx
lea ecx, [ecx]
mov edx, dword [esp + 0x20]
lea esi, [edi*4]
cmp dword [esi + edx], ebx
je 0x438377
mov eax, dword [esp + 0x30]
test eax, eax
je 0x43836d
cmp dword [eax], 0
jne 0x438377
cmp ebx, dword [esp + 0x24]
jne 0x438525
mov ecx, dword [esp + 0x28]
mov eax, edi
cdq
idiv ecx
mov edi, dword [esp + 0x58]
sub edi, eax
cmp dword [esp + 0x48], edi
jg 0x438521
sub ecx, edx
cmp dword [esp + 0x3c], ecx
jg 0x438521
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov byte [esp + 0xd], 1
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x44], ebx
jle 0x43842b
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub edx, eax
mov byte [esp + 0xd], 1
mov ecx, edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x54], edx
mov edi, edi
mov edx, dword [eax]
mov esi, dword [esp + 0x20]
cmp dword [esi + edi*4], edx
je 0x4383f6
cmp dword [esp + 0x30], 0
je 0x4383ec
mov esi, dword [esp + 0x54]
cmp dword [esi + eax], 0
jne 0x4383f6
cmp edx, dword [esp + 0x24]
jne 0x438518
inc ebx
cmp ebx, dword [esp + 0x3c]
jge 0x438400
inc edi
jmp 0x438415
mov edx, dword [esp + 0x28]
lea esi, [edx*4]
add dword [esp + 0x40], esi
xor ebx, ebx
add ecx, edx
mov edi, ecx
mov edx, dword [esp + 0x1c]
inc edx
add eax, 4
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x44]
jl 0x4383d0
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x4c]
push edx
push 0
call dword [0x499550]
mov eax, dword [esp + 0x60]
mov ebx, dword [0x4990f0]
push eax
call ebx
mov esi, dword [esp + 0x64]
test esi, esi
je 0x438464
mov eax, dword [esp + 0x68]
test eax, eax
je 0x43845d
push eax
push esi
call dword [0x4990d8]
push esi
call dword [0x4990c8]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x43846f
push eax
call ebx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x438480
push eax
call fcn.00488575
add esp, 4
mov eax, dword [esp + 0x30]
test eax, eax
je 0x438491
push eax
call fcn.00488575
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4384a2
push eax
call fcn.00488575
add esp, 4
cmp byte [esp + 0xd], 0
je 0x43812d
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x4384d4
mov eax, edi
cdq
idiv dword [esp + 0x28]
push 0x18
mov eax, edx
sub eax, dword [esp + 0x74]
add eax, dword [ebp + 8]
cdq
push edx
push eax
mov eax, ecx
call fcn.00401ce0
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x4384f9
mov eax, edi
cdq
idiv dword [esp + 0x28]
push 0x18
sub eax, dword [esp + 0x78]
add eax, dword [ebp + 0xc]
cdq
push edx
push eax
mov eax, ecx
call fcn.00401ce0
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49b8d0
call fcn.0046e960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0x38]
mov byte [esp + 0xd], 0
mov edi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x50]
jl 0x438350
jmp 0x438723
xor edi, edi
mov dword [esp + 0x18], edi
test edx, edx
jle 0x438723
mov eax, edi
cdq
idiv dword [esp + 0x28]
mov ecx, dword [esp + 0x58]
sub ecx, eax
cmp dword [esp + 0x48], ecx
jg 0x438714
mov eax, dword [esp + 0x28]
sub eax, edx
cmp dword [esp + 0x3c], eax
jg 0x438714
xor eax, eax
mov byte [esp + 0xd], 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x40], edi
cmp dword [esp + 0x44], eax
jle 0x43842b
mov eax, dword [esp + 0x30]
lea ecx, [edi*4]
sub eax, esi
mov byte [esp + 0xd], 1
mov dword [esp + 0x38], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x54], eax
lea esp, [esp]
movzx eax, byte [esi + 2]
mov dl, byte [esi + 1]
cmp ebx, eax
jle 0x4385c2
mov byte [esp + 0xe], 0
jmp 0x4385ca
mov cl, al
sub cl, bl
mov byte [esp + 0xe], cl
movzx edx, dl
mov dword [esp + 0x84], edx
cmp ebx, edx
jle 0x4385df
mov byte [esp + 0x16], 0
jmp 0x4385ed
mov ebx, dword [esp + 0x10]
mov cl, dl
sub cl, byte [esp + 0x10]
mov byte [esp + 0x16], cl
movzx ecx, byte [esi]
cmp ebx, ecx
jle 0x4385fb
mov byte [esp + 0x14], 0
jmp 0x43860c
mov dl, cl
sub dl, byte [esp + 0x10]
mov byte [esp + 0x14], dl
mov edx, dword [esp + 0x84]
mov ebx, dword [esp + 0x10]
mov edi, 0xff
sub edi, eax
cmp ebx, edi
jle 0x438626
mov eax, 0xff
mov byte [esp + 0x17], al
jmp 0x438631
add al, bl
mov byte [esp + 0x17], al
mov eax, 0xff
mov edi, eax
sub edi, edx
cmp ebx, edi
jle 0x43863f
mov byte [esp + 0x15], al
jmp 0x438645
add dl, bl
mov byte [esp + 0x15], dl
mov edx, eax
sub edx, ecx
cmp ebx, edx
jle 0x438653
mov byte [esp + 0xf], al
jmp 0x438659
add cl, bl
mov byte [esp + 0xf], cl
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x40]
mov cl, byte [eax + edi*4 + 2]
mov dl, byte [eax + edi*4 + 1]
mov al, byte [eax + edi*4]
cmp cl, byte [esp + 0xe]
jb 0x438690
cmp cl, byte [esp + 0x17]
ja 0x438690
cmp dl, byte [esp + 0x16]
jb 0x438690
cmp dl, byte [esp + 0x15]
ja 0x438690
cmp al, byte [esp + 0x14]
jb 0x438690
cmp al, byte [esp + 0xf]
jbe 0x4386a9
cmp dword [esp + 0x30], 0
je 0x4386a1
mov eax, dword [esp + 0x54]
cmp dword [esi + eax], 0
jne 0x4386a9
mov ecx, dword [esp + 0x24]
cmp dword [esi], ecx
jne 0x438703
mov eax, dword [esp + 0x5c]
inc eax
mov dword [esp + 0x5c], eax
cmp eax, dword [esp + 0x3c]
jge 0x4386bf
inc edi
mov dword [esp + 0x40], edi
jmp 0x4386e4
mov eax, dword [esp + 0x28]
lea ecx, [eax*4]
add dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x38]
add ecx, eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x1c]
inc eax
add esi, 4
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x44]
jge 0x438427
mov ebx, dword [esp + 0x10]
jmp 0x4385b0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
mov byte [esp + 0xd], 0
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x50]
jl 0x438547
mov ecx, dword [0x4c17f0]
push 1
push 0
push 0xffffffffffffffff
push 0x49e30c
call fcn.0046e960
jmp 0x43842b