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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4187ff
push eax
call dword [0x4da05c]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x41881a
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x41881a
push eax
call fcn.0041e570
add esp, 4
mov ecx, dword [ebx]
test ecx, ecx
je 0x418833
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x418833
push eax
call dword [0x4da05c]
mov ecx, dword [ebx]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x418848
cmp esi, 5
je 0x418848
cmp esi, 6
jne 0x418cb9
mov edx, dword [ebx + 0x18]
mov dword [ebp - 0x34], 0
push edi
mov edi, dword [ebx + 4]
mov esi, dword [edx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x418877
cmp byte [esi + 0x14], 2
jne 0x418877
mov esi, 5
jmp 0x4188c4
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x4188aa
push 2
push edi
call fcn.00442630
mov esi, eax
add esp, 8
test esi, esi
jne 0x4188c4
lea eax, [ebx + 8]
mov dword [ebx + 0xc], 1
push eax
push 1
push dword [ebx + 4]
call fcn.00443420
mov edx, dword [ebx + 0x18]
add esp, 0xc
cmp byte [edx + 8], 0
jne 0x4188c4
push 0
push edx
call fcn.00442630
add esp, 8
mov dword [ebp - 0x34], 1
mov esi, eax
mov eax, dword [ebx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edi, dword [edx + 0x20]
mov eax, dword [eax + 4]
mov dword [ebp - 8], edi
mov ecx, dword [eax + 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x18], ecx
mov al, byte [eax + 5]
mov byte [ebp - 1], al
test esi, esi
jne 0x4188f6
cmp al, 5
jne 0x4188f6
cmp edi, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x2c]
xor eax, eax
mov dword [ebp - 0xc], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
test ecx, ecx
js 0x41890c
cmp eax, ecx
jge 0x418972
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0x2c], edi
cmp edi, edx
ja 0x418972
test esi, esi
jne 0x4189ad
mov eax, dword [ebx + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4da118]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x418966
push 2
lea eax, [ebp - 0x30]
push eax
push edi
push dword [ebp - 0x24]
call fcn.00457ed0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x418966
mov edi, dword [ebp - 0x30]
push eax
push dword [edi + 4]
push dword [ebp - 0x2c]
push ebx
call fcn.0041c0c0
push edi
mov esi, eax
call fcn.00459d20
add esp, 0x14
mov eax, dword [ebp - 0x1c]
inc dword [ebx + 0x10]
inc eax
mov edx, dword [ebp - 0xc]
jmp 0x4188fe
test esi, esi
jne 0x4189ad
mov eax, edx
mov dword [ebx + 0x24], edx
sub eax, dword [ebx + 0x10]
inc eax
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0x10], edx
ja 0x4189b6
cmp dword [ebx + 0x28], esi
jne 0x418c88
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebx + 0x2c], eax
mov dword [ecx + 0x58], ebx
mov dword [ebx + 0x28], 1
jmp 0x418c88
cmp esi, 0x65
jne 0x418c88
test edx, edx
jne 0x418a16
mov edi, dword [ebx + 4]
cmp byte [edi + 9], dl
je 0x4189d3
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x4189d3
push edi
call fcn.0041e570
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
push dword [edi + 4]
call fcn.00433f20
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x4189ff
add dword [edi + 0xc], 0xffffffff
jne 0x4189ff
push edi
call fcn.00478290
add esp, 4
mov edi, 1
mov dword [ebp - 0xc], edi
test esi, esi
je 0x418a19
cmp esi, 0x65
jne 0x418c88
jmp 0x418a19
mov edi, dword [ebp - 0xc]
mov eax, dword [ebx + 8]
inc eax
push eax
push 1
push dword [ebx + 4]
call fcn.00445160
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x418c88
mov eax, dword [ebx]
test eax, eax
je 0x418a44
push eax
call fcn.0045f0d0
add esp, 4
cmp byte [ebp - 1], 5
jne 0x418a61
push 2
push dword [ebx + 4]
call fcn.00444f80
mov esi, eax
add esp, 8
test esi, esi
jne 0x418c88
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
cmp eax, ecx
jge 0x418d90
mov eax, ecx
cdq
idiv dword [ebp - 8]
mov ecx, eax
lea eax, [ecx - 1]
add eax, edi
cdq
idiv ecx
mov ecx, dword [ebp - 0x10]
mov edi, eax
mov eax, dword [ebp - 0xc]
imul dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x30], edx
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4da118]
div dword [ecx + 0x20]
lea ecx, [edi - 1]
inc eax
cmp edi, eax
cmovne ecx, edi
mov dword [ebp - 0xc], ecx
mov edi, ecx
nop word [eax + eax]
cmp edi, dword [ebp - 0x28]
ja 0x418b2e
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4da118]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x418b24
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x10]
call fcn.00457ed0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x418b24
mov edi, dword [ebp - 0x20]
push edi
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + 0x94]
cmp eax, dword [ecx + 0x98]
jbe 0x418b0e
call fcn.004355a0
jmp 0x418b13
call fcn.00436660
add esp, 4
mov esi, eax
push edi
call fcn.00459d20
mov edi, dword [ebp - 0xc]
add esp, 4
inc edi
mov dword [ebp - 0xc], edi
test esi, esi
je 0x418ac0
jmp 0x418b42
test esi, esi
jne 0x418b42
push 1
push esi
push dword [ebp - 0x10]
call fcn.004587a0
add esp, 0xc
mov esi, eax
mov eax, dword [0x4da118]
add eax, dword [ebp - 0x18]
cdq
mov ecx, edx
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0xc], ecx
cmp ecx, edx
jg 0x418b61
jl 0x418b6a
cmp eax, dword [ebp - 0x14]
jb 0x418b6a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], edx
mov eax, dword [0x4da118]
add eax, dword [ebp - 8]
cdq
mov dword [ebp - 0x28], eax
mov edi, eax
mov dword [ebp - 0x1c], edx
mov ecx, edx
test esi, esi
jne 0x418c88
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], edx
cmp ecx, ebx
jg 0x418d02
jl 0x418ba5
cmp edi, dword [ebp - 0x20]
jae 0x418d02
push 0
lea esi, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push esi
push edx
push eax
push ecx
push edi
call fcn.004a0920
inc eax
push eax
push dword [ebp - 0x24]
call fcn.00457ed0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x418beb
push dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp - 8]
mov eax, dword [edx]
push dword [ecx + 4]
push edx
mov eax, dword [eax + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x418c6a
test byte [ecx + 0x18], 0x40
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0x18], ebx
je 0x418c43
dec dword [ebx + 0x78]
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov edi, dword [ebx + 0x3c]
mov dword [ebx + 0x88], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004a0ab0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [ebp - 0x18]
add esp, 0x10
mov edi, dword [ebp - 0x28]
jmp 0x418c4c
push ecx
call fcn.0045a8c0
add esp, 4
cmp dword [ebx + 0x78], 0
jne 0x418c67
mov eax, dword [ebx + 0xcc]
cmp dword [eax + 0xc], 0
jne 0x418c67
push ebx
call fcn.00435450
add esp, 4
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x38]
add edi, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
adc ecx, edx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x1c], ecx
test esi, esi
je 0x418b92
mov ebx, dword [ebp + 8]
cmp dword [ebp - 0x34], 0
pop edi
je 0x418ca6
push 0
push dword [ebx + 0x18]
call fcn.00442c80
push 0
push dword [ebx + 0x18]
call fcn.00442d20
add esp, 0x10
mov ecx, dword [ebx]
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebx + 0x1c], esi
test ecx, ecx
je 0x418cce
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x418cce
push eax
call dword [0x4da064]
add esp, 4
mov eax, dword [ebx + 0x18]
cmp byte [eax + 9], 0
je 0x418ce6
add dword [eax + 0xc], 0xffffffff
jne 0x418ce6
push eax
call fcn.00478290
add esp, 4
mov ecx, dword [ebx + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x418cfa
push ecx
call dword [0x4da064]
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x40]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x418c85
mov ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x3c], ecx
jl 0x418d41
jg 0x418d30
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x40], eax
jbe 0x418d41
mov eax, dword [ebx]
push ecx
push dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x418c85
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x418d70
push esi
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
mov esi, eax
add esp, 0xc
cmp esi, 0xc
jne 0x418d6c
xor esi, esi
jmp 0x418d70
test esi, esi
jne 0x418d8b
cmp byte [ebx + 7], 0
jne 0x418d8b
mov eax, dword [ebx + 0x3c]
movzx edx, byte [ebx + 0xb]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x14]
call eax
add esp, 8
mov esi, eax
mov ebx, dword [ebp + 8]
jmp 0x418dab
cdq
idiv ecx
mov ecx, dword [ebp - 0x10]
imul eax, edi
push 0
push 0
push ecx
mov dword [ecx + 0x18], eax
call fcn.004587a0
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x418c88
push esi
push dword [ebx + 4]
call fcn.00442d20
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
jmp 0x418c88