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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x459178]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x15c]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x170], edi
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
call fcn.0041bd07
mov ecx, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], ecx
jne 0x4183fc
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
jmp 0x4184d0
mov eax, dword [edi + 0x30]
and dword [ebp - 0x168], 0
dec eax
je 0x4184d7
dec eax
dec eax
jne 0x4184ec
mov eax, dword [edi + 0x7c]
cmp eax, dword [edi + 0x80]
je 0x4184ad
mov eax, dword [edi + 0x80]
sub eax, dword [edi + 0x7c]
push 0x18
cdq
pop ecx
idiv ecx
dec eax
mov dword [ebp - 0x164], eax
js 0x4184ec
imul edx, eax, 0x18
mov dword [ebp - 0x160], edx
mov ecx, dword [edi + 0x7c]
xor eax, eax
add ecx, edx
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call fcn.0041bd07
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00419e67
lea ecx, [ebp - 0x14]
test eax, eax
je 0x4184a6
call fcn.00401880
mov eax, dword [ebp - 0x164]
mov edx, dword [ebp - 0x160]
dec eax
sub edx, 0x18
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x160], edx
test eax, eax
jns 0x418449
jmp 0x4184ec
call fcn.00401880
jmp 0x4184ec
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [edi + 0x70]
push eax
call fcn.00419e67
test eax, eax
je 0x4184ec
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
xor bl, bl
jmp 0x418d0e
sub ecx, dword [ebp - 0x15c]
mov eax, ecx
push 0x18
cdq
pop ecx
idiv ecx
dec eax
mov dword [ebp - 0x168], eax
push dword [ebp - 0x168]
xor edx, edx
lea ecx, [ebp - 0x15c]
call fcn.00416c58
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.0041b924
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x50]
call fcn.0041bc7e
xor ecx, ecx
cmp dword [edi + 0x30], 2
mov byte [ebp - 0x145], cl
jne 0x4185e7
cmp dword [ebp - 0x40], 1
jbe 0x4185e7
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 2], 0x5f
jne 0x4185e7
cmp dword [ebp - 0x40], 2
jne 0x418559
cmp byte [esi + 0x94], cl
jne 0x41857d
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x5c
je 0x41857d
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x2f
jne 0x4185e7
xor eax, eax
mov dword [ebp - 0x10], ecx
push 1
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x50]
push ecx
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 7
call fcn.00401a6e
push 0x3a
pop eax
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00403147
lea ecx, [ebp - 0x20]
call fcn.0040d540
test al, al
je 0x4185ce
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push 0x3a
cmovae eax, dword [ebp - 0x50]
pop ecx
mov byte [ebp - 0x145], 1
mov word [eax + 2], cx
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004017f1
cmp byte [ebp - 0x145], 0
jne 0x4186bf
cmp byte [edi + 0x39], 0
je 0x4186bf
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.00401f0e
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
jne 0x41862e
lea eax, [edi + 0x88]
lea edx, [ebp - 0xe8]
cmp edx, eax
je 0x41862e
push 0xffffffffffffffff
push ecx
push eax
mov ecx, edx
call fcn.00401a6e
mov ecx, dword [ebp - 0xd8]
cmp byte [edi + 0xe9], 0
je 0x418662
cmp dword [ebp - 0xd4], 8
lea eax, [ebp - 0xe8]
push ecx
cmovae eax, dword [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0x15c]
push dword [eax + 0x10]
push ecx
mov ecx, eax
call fcn.0040321f
test eax, eax
je 0x418682
lea eax, [ebp - 0xe8]
push eax
push ecx
push dword [ebp - 0x15c]
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0041a37b
lea ecx, [ebp - 0x15c]
call fcn.0041b924
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x38]
call fcn.0041bc7e
push eax
lea ecx, [ebp - 0x50]
call fcn.00401f36
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004017f1
push 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.004017f1
cmp byte [esi + 0x94], 0
jne 0x4186f0
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], eax
je 0x4186f0
lea esi, [eax - 0x18]
push 0
push 1
mov ecx, esi
call fcn.004017f1
mov dword [ebp - 0x158], esi
mov esi, dword [ebp - 0x150]
mov cl, byte [esi + 0x94]
mov al, 1
test cl, cl
je 0x418708
xor edx, edx
movzx eax, al
cmp dword [edi + 0x30], 1
cmove eax, edx
xor edx, edx
movzx eax, al
cmp dword [edi + 0x2c], 2
cmove eax, edx
test al, al
je 0x418965
xor eax, eax
mov dword [ebp - 0x80], 7
mov dword [ebp - 0x84], edx
mov word [ebp - 0x94], ax
mov byte [ebp - 0x146], dl
cmp byte [ebp - 0x145], al
je 0x418786
test cl, cl
je 0x418758
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x94]
call fcn.00401a6e
jmp 0x418766
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x50]
call fcn.0040ec00
lea ecx, [ebp - 0x94]
call fcn.0040d7d0
test al, al
jne 0x418782
lea ecx, [ebp - 0x94]
call fcn.0040e0a0
jmp 0x41879b
mov al, 1
jmp 0x4187a2
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0041768e
mov byte [ebp - 0x146], 1
test al, al
jne 0x418802
lea ecx, [ebp - 0x38]
call fcn.00410ef0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x4187b8
mov ecx, dword [ecx]
cmp dword [ebp - 0x80], 8
lea eax, [ebp - 0x94]
push ecx
cmovae eax, dword [ebp - 0x94]
push eax
lea eax, [ebp - 0x20]
push 0x271a
push eax
call fcn.00403264
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0
push 1
call fcn.004017f1
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00419bb2
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004017f1
cmp byte [ebp - 0x145], 0
jne 0x418908
cmp byte [esi + 0x94], 0
je 0x418956
cmp byte [edi + 0x6c], 0
jne 0x418832
cmp byte [edi + 0x6d], 0
jne 0x418832
cmp byte [edi + 0x6e], 0
je 0x418956
xor ecx, ecx
mov dword [ebp - 0xbc], 7
xor eax, eax
mov dword [ebp - 0xc0], ecx
push 0xffffffffffffffff
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0x94]
push ecx
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], ecx
mov byte [ebp - 0xb0], cl
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 0xa4], cl
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 0x98], cl
lea ecx, [ebp - 0xd0]
push eax
call fcn.00401a6e
cmp byte [edi + 0x6c], 0
je 0x4188c0
cmp byte [esi + 0x90], 0
je 0x4188c0
mov eax, dword [esi + 0x6c]
mov dword [ebp - 0xb8], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 1
cmp byte [edi + 0x6d], 0
je 0x4188e8
cmp byte [esi + 0x91], 0
je 0x4188e8
mov eax, dword [esi + 0x74]
mov dword [ebp - 0xac], eax
mov eax, dword [esi + 0x78]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 1
cmp byte [edi + 0x6e], 0
je 0x418916
cmp byte [esi + 0x92], 0
je 0x418916
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x80]
jmp 0x418928
cmp byte [ebp - 0x146], 0
je 0x418956
jmp 0x41880f
mov eax, dword [edi + 0xb8]
mov dword [ebp - 0xa0], eax
mov eax, dword [edi + 0xbc]
mov dword [ebp - 0x9c], eax
lea ecx, [edi + 0x140]
lea eax, [ebp - 0xd0]
mov byte [ebp - 0x98], 1
push eax
call fcn.0041a2c6
push 0
push 1
lea ecx, [ebp - 0xd0]
call fcn.004017f1
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.004017f1
and dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x418973
mov eax, dword [ebx]
jmp 0x418975
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x50]
cmp byte [ebp - 0x145], cl
je 0x418996
cmp ebx, eax
je 0x4189b7
push 0xffffffffffffffff
push ecx
push eax
mov ecx, ebx
call fcn.00401a6e
jmp 0x4189b7
push eax
lea edx, [edi + 0x3c]
lea ecx, [ebp - 0x38]
call fcn.00401ff6
pop ecx
push eax
mov ecx, ebx
call fcn.00401f36
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004017f1
cmp byte [esi + 0x94], 0
je 0x4189ce
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x418f7a
cmp byte [esi + 0x20], 0
jne 0x418d00
lea ecx, [ebp - 0x12c]
call fcn.0040d310
mov ecx, ebx
mov byte [ebp - 0x146], 0
call fcn.0040d540
test al, al
je 0x418f5c
lea edx, [ebp - 0x12c]
mov ecx, ebx
call fcn.0040e850
test al, al
je 0x418f5c
cmp dword [edi + 0x2c], 1
mov edx, dword [ebp - 0x114]
je 0x418a20
cmp dword [edi + 0x2c], 2
jne 0x418a5b
cmp dword [edi + 0x34], 1
ja 0x418a5b
xor ecx, ecx
lea eax, [esi + 0x7c]
cmp byte [esi + 0x92], cl
cmovne ecx, eax
test ecx, ecx
je 0x418f66
mov eax, dword [ebp - 0x110]
cmp dword [ecx + 4], eax
jb 0x418f66
ja 0x418a5b
cmp dword [ecx], edx
jb 0x418f66
jbe 0x418f66
mov eax, dword [edi + 0x34]
sub eax, 0
je 0x418a70
dec eax
dec eax
jne 0x418ce0
jmp 0x418f66
mov eax, dword [ebp - 0x12c]
xorps xmm0, xmm0
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x110]
push ecx
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x145], 0
movlpd qword [ebp - 0x16c], xmm0
call fcn.00408994
test al, al
je 0x418b01
lea ecx, [ebp - 0x7c]
call fcn.00410ff0
lea ecx, [edi + 0x1c]
call fcn.0040892e
lea ecx, [ebp - 0x7c]
push ecx
push 7
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 8]
call dword [edx + 0x1c]
test eax, eax
jne 0x418af9
cmp dword [ebp - 0x7c], eax
setne al
mov byte [ebp - 0x145], al
test al, al
je 0x418af9
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x168], eax
lea ecx, [ebp - 0x7c]
call fcn.00411060
lea eax, [edi + 0x130]
mov dword [ebp - 0x160], eax
test eax, eax
je 0x418b1e
cmp dword [eax], 0
je 0x418b1e
push dword [eax]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x20]
call fcn.0040892e
mov edi, dword [ebp - 0x150]
lea ecx, [ebp - 0x16c]
mov edx, eax
lea eax, [ebp - 0x164]
push ebx
push eax
xor eax, eax
cmp byte [ebp - 0x145], al
mov esi, dword [edx]
cmove ecx, eax
mov eax, dword [ebp - 0x150]
push 1
push ecx
add eax, 0x7c
xor ecx, ecx
cmp byte [edi + 0x92], cl
cmovne ecx, eax
lea eax, [ebp - 0x17c]
push ecx
push dword [ebp - 0x174]
mov ecx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [esi + 0x18]
mov edi, dword [ebp - 0x170]
test eax, eax
je 0x418b8f
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
jmp 0x418f4f
mov eax, dword [ebp - 0x164]
cmp eax, 7
ja case.default.0x418b9e
jmp dword [eax*4 + 0x418f82]
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004004
jmp 0x418f4f
mov dword [edi + 0x34], 2
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x418f4f
mov dword [edi + 0x34], 1
jmp 0x418ccf
mov esi, dword [ebp - 0x150]
lea ecx, [esi + 0x3c]
cmp ecx, ebx
je 0x418bee
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401a6e
mov ecx, ebx
call fcn.00415adf
test al, al
jne 0x418c6a
lea eax, [ebp - 0x144]
push 0x271b
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x144]
call fcn.0040220d
push eax
lea ecx, [ebp - 0x6c]
call fcn.004014d2
lea ecx, [ebp - 0x144]
push 0
push 1
call fcn.004017f1
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00419bb2
mov edx, dword [ebp - 0x14c]
test eax, eax
mov ecx, 0x80004005
cmovne ecx, eax
push 0
mov dword [edx], ecx
lea ecx, [ebp - 0x6c]
push 1
call fcn.004017f1
jmp 0x418f4f
mov byte [esi + 0x54], 1
jmp 0x418cd5
mov dword [edi + 0x34], 3
jmp 0x418ccf
mov ecx, ebx
mov byte [ebp - 0x146], 1
call fcn.00415adf
test al, al
jne 0x418ccf
lea eax, [ebp - 0x38]
push 0x271b
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040220d
push eax
lea ecx, [ebp - 0x6c]
call fcn.004014d2
lea ecx, [ebp - 0x38]
jmp 0x418c30
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x146], 1
je case.default.0x418b9e
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x160]
call fcn.004032fb
cmp dword [edi + 0x34], 3
jne 0x418d2e
mov ecx, ebx
call fcn.00415adf
test al, al
je 0x418e05
lea ecx, [ebp - 0x12c]
call fcn.0040d3b0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.004017f1
lea ecx, [ebp - 0x15c]
call fcn.00401880
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435a0a
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x34], 4
jne 0x418ddf
push ebx
lea ecx, [ebp - 0x20]
call fcn.00401f0e
lea ecx, [ebp - 0x20]
call fcn.00415adf
test al, al
jne 0x418d54
push 0x271b
jmp 0x418d67
lea edx, [ebp - 0x20]
mov ecx, ebx
call fcn.00413270
test al, al
jne 0x418dce
push 0x271d
lea eax, [ebp - 0x38]
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040220d
push eax
lea ecx, [ebp - 0x6c]
call fcn.004014d2
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004017f1
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00419bb2
mov edx, dword [ebp - 0x14c]
test eax, eax
mov ecx, 0x80004005
cmovne ecx, eax
push 0
mov dword [edx], ecx
lea ecx, [ebp - 0x6c]
push 1
call fcn.004017f1
push 0
push 1
jmp 0x418f39
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.004017f1
jmp 0x418cf5
cmp dword [edi + 0x34], 1
jne 0x418e71
lea ecx, [esi + 0x3c]
cmp ecx, ebx
je 0x418dfa
push 0xffffffffffffffff
push 0
push ebx
call fcn.00401a6e
mov ecx, ebx
call fcn.00415adf
test al, al
jne 0x418e68
lea eax, [ebp - 0x38]
push 0x271b
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040220d
push eax
lea ecx, [ebp - 0x6c]
call fcn.004014d2
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.004017f1
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00419bb2
mov edx, dword [ebp - 0x14c]
test eax, eax
mov ecx, 0x80004005
cmovne ecx, eax
push 0
mov dword [edx], ecx
lea ecx, [ebp - 0x6c]
push 1
jmp 0x418f3c
mov byte [esi + 0x54], 1
jmp 0x418cf5
cmp byte [ebp - 0x146], 0
jne 0x418cf5
cmp byte [esi + 0x54], 0
jne 0x418cf5
mov ecx, ebx
call fcn.004138f0
test al, al
jne 0x418cf5
lea eax, [ebp - 0x38]
push 0x271c
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.0040220d
push eax
lea ecx, [ebp - 0x20]
call fcn.004014d2
xor ebx, ebx
lea ecx, [ebp - 0x38]
push 0
inc ebx
push ebx
call fcn.004017f1
lea eax, [ebp - 0x38]
push 0x2790
push eax
call fcn.00403405
mov ecx, eax
call fcn.004156d6
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040220d
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f1
lea ecx, [ebp - 0x38]
call fcn.00410ef0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.0040220d
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004017f1
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00419bb2
mov edx, dword [ebp - 0x14c]
push 0
push ebx
mov dword [edx], eax
lea ecx, [ebp - 0x20]
call fcn.004017f1
jmp 0x418f6f
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
lea ecx, [ebp - 0x160]
call fcn.004032fb
jmp 0x418f6f
cmp dword [edi + 0x2c], 2
jne 0x418cf5
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
lea ecx, [ebp - 0x12c]
call fcn.0040d3b0
xor bl, bl
jmp 0x418d02