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

Disassembly:
sub esp, 0x4c
mov ecx, dword [ebx + 0x60]
mov edx, dword [ebx + 0xd4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x54]
mov dword [esp + 0xc], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebx + 0x58]
add ecx, eax
add ecx, dword [ebp + 0xc]
push esi
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x20], ecx
push edi
mov ecx, 7
mov esi, ebp
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x48]
mov esi, dword [ebx + 0x54]
add dword [esp + 0x44], esi
add ecx, eax
test byte [ebx + 0x24], 1
mov dword [esp + 0x1c], 1
mov dword [esp + 0x48], ecx
je 0x418a99
mov edi, dword [ebx + 0x74]
jmp 0x418a9d
mov edi, dword [esp + 0x4c]
add esi, esi
sub edi, esi
mov esi, dword [esp + 0x50]
neg eax
test edx, edx
lea eax, [esi + eax*2]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], eax
jne 0x418af7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push ecx
push 0
push ebx
call fcn.00418930
mov ecx, dword [ebx + 0x24]
mov eax, ecx
and eax, 7
sub eax, 1
je 0x418d1f
sub eax, 1
je 0x418d16
sub eax, 2
jne 0x418d28
mov eax, dword [ebp + 0x10]
jmp 0x418d22
mov edx, dword [esp + 0x18]
test edx, edx
mov edi, edx
mov dword [esp + 0x28], edi
je 0x418d0c
mov eax, dword [edx]
mov esi, dword [edx + 8]
mov edx, dword [esi + 0x7c]
shr edx, 3
not edx
test dl, 1
mov dword [esp + 0x18], eax
je 0x418cfc
test dword [esi + 0x24], 0x200
jne 0x418cfc
cmp dword [esp + 0x1c], 0
je 0x418b37
mov dword [esp + 0x14], edi
mov eax, dword [esi]
mov edx, dword [eax + 4]
push 0x4b6ac8
mov ecx, esi
call edx
test eax, eax
je 0x418ba9
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
push esi
push eax
mov eax, dword [esp + 0x1c]
push edi
push ebx
call fcn.00418930
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebp + 8]
add ecx, edx
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x60]
add ecx, esi
test byte [ebx + 0x24], 1
mov dword [esp + 0x14], edi
mov dword [esp + 0x48], ecx
je 0x418b82
mov eax, dword [ebx + 0x74]
jmp 0x418b85
mov eax, dword [ebp + 0x10]
add edx, edx
sub eax, edx
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebx + 0x58]
mov dword [esp + 0x1c], 0
add eax, dword [ebp + 0xc]
mov dword [esp + 0x50], eax
jmp 0x418cfc
xor edx, edx
cmp dword [esp + 0x4c], edx
jne 0x418bc2
mov edi, dword [esp + 0x34]
mov dword [esp + 0x20], 1
jmp 0x418c44
mov eax, dword [esi]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x40]
push ecx
push edx
push 0x47
mov dword [esp + 0x30], edx
mov dword [esi + 0xd0], edx
push edx
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov ecx, dword [esi + 0x20]
mov edx, dword [esp + 0x4c]
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x44]
add edx, ecx
cmp edi, edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], 0
jg 0x418c12
cmp edi, eax
jg 0x418c42
cmp dword [esp + 0x1c], 0
jne 0x418c42
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x28]
push edx
push eax
mov eax, dword [esp + 0x1c]
push ecx
push ebx
mov dword [esp + 0x30], 1
call fcn.00418930
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], edx
xor edx, edx
cmp dword [esp + 0x20], edx
mov dword [esp + 0x1c], edx
je 0x418cc2
mov ecx, dword [ebx + 0x60]
mov edi, dword [ebx + 0x54]
mov eax, dword [ebp + 8]
add ecx, dword [esp + 0x10]
add eax, edi
test byte [ebx + 0x24], 1
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
je 0x418c70
mov eax, dword [ebx + 0x74]
jmp 0x418c73
mov eax, dword [ebp + 0x10]
add edi, edi
sub eax, edi
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x14]
sub eax, ecx
sub eax, dword [ebx + 0x58]
lea ecx, [esp + 0x28]
add eax, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x40]
push ecx
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [esi]
push 0x47
mov dword [esp + 0x38], edx
mov dword [esi + 0xd0], edx
push edx
mov edx, dword [eax + 0x34]
mov ecx, esi
call edx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov edi, ecx
mov eax, dword [ebx + 0x5c]
mov ecx, dword [esp + 0x2c]
mov edx, eax
sub edx, ecx
sub ecx, eax
mov eax, dword [esp + 0x38]
add edx, edi
add dword [esp + 0x44], edx
sub ecx, edi
add dword [esp + 0x4c], ecx
cmp dword [esp + 0x10], eax
jge 0x418ce9
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x54]
mov ecx, dword [esp + 0x48]
add eax, edi
cmp dword [esp + 0x24], eax
jge 0x418cfc
mov dword [esp + 0x24], eax
cmp dword [esp + 0x18], 0
jne 0x418af3
jmp 0x418ab6
push 0x80004005
call fcn.00401050
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x1c], edx
jmp 0x418d28
mov eax, dword [ebx + 0x74]
add eax, dword [ebp + 8]
mov dword [ebx + 0x1c], eax
and ecx, 0x70
cmp ecx, 0x10
je 0x418d51
cmp ecx, 0x20
je 0x418d45
cmp ecx, 0x40
jne 0x418d5a
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp + 0xc]
mov dword [ebx + 0x20], ecx
jmp 0x418d5a
mov edx, dword [ebx + 0x58]
add edx, dword [esp + 0x10]
mov dword [ebx + 0x20], edx
jmp 0x418d5a
mov eax, dword [ebx + 0x78]
add eax, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebx + 0xd4]
test eax, eax
je 0x418ec3
jmp 0x418d74
mov eax, dword [esp + 0x18]
test eax, eax
je 0x418d0c
mov ebp, dword [eax + 8]
mov edx, dword [ebp + 0x7c]
mov ecx, dword [eax]
shr edx, 3
not edx
test dl, 1
mov dword [esp + 0x18], ecx
je 0x418eb8
test dword [ebp + 0x24], 0x200
je 0x418eb8
mov esi, dword [esp + 0x5c]
mov edx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x58]
mov ecx, 7
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
add dword [esp + 0x44], edx
add dword [esp + 0x48], eax
test byte [ebx + 0x24], 1
je 0x418dc7
mov ecx, dword [ebx + 0x74]
jmp 0x418dcb
mov ecx, dword [esp + 0x4c]
add edx, edx
sub ecx, edx
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x50]
neg eax
lea edx, [ecx + eax*2]
lea ecx, [esp + 0x28]
push ecx
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x58], edx
mov edx, dword [ebp]
mov edx, dword [edx + 0x34]
push eax
push 0x47
push eax
mov ecx, ebp
mov dword [esp + 0x3c], eax
mov dword [ebp + 0xd0], eax
call edx
mov eax, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x80]
or eax, dword [ebp + 0x84]
test eax, 0x8000
je 0x418e35
mov edx, edi
sub edx, ecx
add edx, dword [esp + 0x4c]
add dword [esp + 0x44], edx
jmp 0x418e4d
test eax, 0x4000
je 0x418e4d
mov eax, edi
sub eax, ecx
add eax, dword [esp + 0x4c]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x44], eax
mov eax, dword [ebp + 0x80]
or eax, dword [ebp + 0x84]
test eax, 0x2000
je 0x418e6c
mov eax, dword [esp + 0x30]
sub eax, esi
add eax, dword [esp + 0x50]
jmp 0x418e82
test eax, 0x1000
je 0x418e86
mov eax, dword [esp + 0x30]
sub eax, esi
add eax, dword [esp + 0x50]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x48], eax
sub esi, dword [esp + 0x30]
sub ecx, edi
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x28]
push ecx
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
push eax
mov dword [esp + 0x5c], esi
mov edx, dword [ebp]
mov edx, dword [edx + 0x34]
push 0x47
push eax
mov ecx, ebp
mov dword [esp + 0x3c], eax
mov dword [ebp + 0xd0], eax
call edx
cmp dword [esp + 0x18], 0
jne 0x418d70
pop edi
pop esi
pop ebp
add esp, 0x4c
ret 4