Function at 0x418d3d
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.0041c59b
mov ecx, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], ecx
jne 0x418db7
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
jmp 0x418e8b
mov eax, dword [edi + 0x30]
and dword [ebp - 0x168], 0
dec eax
je 0x418e92
dec eax
dec eax
jne 0x418ea7
mov eax, dword [edi + 0x7c]
cmp eax, dword [edi + 0x80]
je 0x418e68
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 0x418ea7
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.0041c59b
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0041a80f
lea ecx, [ebp - 0x14]
test eax, eax
je 0x418e61
call fcn.00401e85
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 0x418e04
jmp 0x418ea7
call fcn.00401e85
jmp 0x418ea7
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [edi + 0x70]
push eax
call fcn.0041a80f
test eax, eax
je 0x418ea7
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
xor bl, bl
jmp 0x4196ab
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.00417618
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.0041c1b8
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x50]
call fcn.0041c512
xor ecx, ecx
cmp dword [edi + 0x30], 2
mov byte [ebp - 0x145], cl
jne 0x418fa2
cmp dword [ebp - 0x40], 1
jbe 0x418fa2
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 2], 0x5f
jne 0x418fa2
cmp dword [ebp - 0x40], 2
jne 0x418f14
cmp byte [esi + 0x94], cl
jne 0x418f38
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x5c
je 0x418f38
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x2f
jne 0x418fa2
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.00402073
push 0x3a
pop eax
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.004036d8
lea ecx, [ebp - 0x20]
call fcn.0040dab0
test al, al
je 0x418f89
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.00401df6
cmp byte [ebp - 0x145], 0
jne 0x41905c
cmp byte [edi + 0x39], 0
je 0x41905c
lea eax, [edi + 0xa0]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004025a9
cmp dword [ebp - 0xd8], 0
jne 0x418fe1
lea eax, [edi + 0x88]
lea ecx, [ebp - 0xe8]
cmp ecx, eax
je 0x418fe1
push 0xffffffffffffffff
push 0
push eax
call fcn.00402073
cmp byte [edi + 0xe9], 0
je 0x418fff
mov ecx, dword [ebp - 0x15c]
lea edx, [ebp - 0xe8]
call fcn.004037b0
test al, al
jne 0x41901f
lea eax, [ebp - 0xe8]
push eax
push ecx
push dword [ebp - 0x15c]
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0041ad23
lea ecx, [ebp - 0x15c]
call fcn.0041c1b8
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x38]
call fcn.0041c512
push eax
lea ecx, [ebp - 0x50]
call fcn.004025d1
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401df6
push 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.00401df6
cmp byte [esi + 0x94], 0
jne 0x41908d
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], eax
je 0x41908d
lea esi, [eax - 0x18]
push 0
push 1
mov ecx, esi
call fcn.00401df6
mov dword [ebp - 0x158], esi
mov esi, dword [ebp - 0x150]
mov cl, byte [esi + 0x94]
mov al, 1
test cl, cl
je 0x4190a5
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 0x419302
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 0x419123
test cl, cl
je 0x4190f5
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x94]
call fcn.00402073
jmp 0x419103
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x50]
call fcn.0040f220
lea ecx, [ebp - 0x94]
call fcn.0040dd40
test al, al
jne 0x41911f
lea ecx, [ebp - 0x94]
call fcn.0040e610
jmp 0x419138
mov al, 1
jmp 0x41913f
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0041804e
mov byte [ebp - 0x146], 1
test al, al
jne 0x41919f
lea ecx, [ebp - 0x38]
call fcn.00411840
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x419155
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.00403811
add esp, 0x10
lea ecx, [ebp - 0x38]
push 0
push 1
call fcn.00401df6
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0041a551
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401df6
cmp byte [ebp - 0x145], 0
jne 0x4192a5
cmp byte [esi + 0x94], 0
je 0x4192f3
cmp byte [edi + 0x6c], 0
jne 0x4191cf
cmp byte [edi + 0x6d], 0
jne 0x4191cf
cmp byte [edi + 0x6e], 0
je 0x4192f3
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.00402073
cmp byte [edi + 0x6c], 0
je 0x41925d
cmp byte [esi + 0x90], 0
je 0x41925d
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 0x419285
cmp byte [esi + 0x91], 0
je 0x419285
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 0x4192b3
cmp byte [esi + 0x92], 0
je 0x4192b3
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0xa0], eax
mov eax, dword [esi + 0x80]
jmp 0x4192c5
cmp byte [ebp - 0x146], 0
je 0x4192f3
jmp 0x4191ac
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.0041ac6e
push 0
push 1
lea ecx, [ebp - 0xd0]
call fcn.00401df6
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00401df6
and dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 8
jb 0x419310
mov eax, dword [ebx]
jmp 0x419312
mov eax, ebx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x50]
cmp byte [ebp - 0x145], cl
je 0x419333
cmp ebx, eax
je 0x419354
push 0xffffffffffffffff
push ecx
push eax
mov ecx, ebx
call fcn.00402073
jmp 0x419354
push eax
lea edx, [edi + 0x3c]
lea ecx, [ebp - 0x38]
call fcn.00402691
pop ecx
push eax
mov ecx, ebx
call fcn.004025d1
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401df6
cmp byte [esi + 0x94], 0
je 0x41936b
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x419917
cmp byte [esi + 0x20], 0
jne 0x41969d
lea ecx, [ebp - 0x12c]
call fcn.0040d830
mov ecx, ebx
mov byte [ebp - 0x146], 0
call fcn.0040dab0
test al, al
je 0x4198f9
lea edx, [ebp - 0x12c]
mov ecx, ebx
call fcn.0040edd0
test al, al
je 0x4198f9
cmp dword [edi + 0x2c], 1
mov edx, dword [ebp - 0x114]
je 0x4193bd
cmp dword [edi + 0x2c], 2
jne 0x4193f8
cmp dword [edi + 0x34], 1
ja 0x4193f8
xor ecx, ecx
lea eax, [esi + 0x7c]
cmp byte [esi + 0x92], cl
cmovne ecx, eax
test ecx, ecx
je 0x419903
mov eax, dword [ebp - 0x110]
cmp dword [ecx + 4], eax
jb 0x419903
ja 0x4193f8
cmp dword [ecx], edx
jb 0x419903
jbe 0x419903
mov eax, dword [edi + 0x34]
sub eax, 0
je 0x41940d
dec eax
dec eax
jne 0x41967d
jmp 0x419903
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.00408e5e
test al, al
je 0x41949e
lea ecx, [ebp - 0x7c]
call fcn.00411940
lea ecx, [edi + 0x1c]
call fcn.00408d9a
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 0x419496
cmp dword [ebp - 0x7c], eax
setne al
mov byte [ebp - 0x145], al
test al, al
je 0x419496
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.004119b0
lea eax, [edi + 0x130]
mov dword [ebp - 0x160], eax
test eax, eax
je 0x4194bb
cmp dword [eax], 0
je 0x4194bb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x20]
call fcn.00408d9a
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 0x41952c
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
jmp 0x4198ec
mov eax, dword [ebp - 0x164]
cmp eax, 7
ja case.default.0x41953b
jmp dword [eax*4 + 0x419921]
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004004
jmp 0x4198ec
mov dword [edi + 0x34], 2
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x4198ec
mov dword [edi + 0x34], 1
jmp 0x41966c
mov esi, dword [ebp - 0x150]
lea ecx, [esi + 0x3c]
cmp ecx, ebx
je 0x41958b
push 0xffffffffffffffff
push 0
push ebx
call fcn.00402073
mov ecx, ebx
call fcn.0041649f
test al, al
jne 0x419607
lea eax, [ebp - 0x144]
push 0x271b
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x144]
call fcn.004028a8
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401b55
lea ecx, [ebp - 0x144]
push 0
push 1
call fcn.00401df6
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0041a551
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.00401df6
jmp 0x4198ec
mov byte [esi + 0x54], 1
jmp 0x419672
mov dword [edi + 0x34], 3
jmp 0x41966c
mov ecx, ebx
mov byte [ebp - 0x146], 1
call fcn.0041649f
test al, al
jne 0x41966c
lea eax, [ebp - 0x38]
push 0x271b
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004028a8
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401b55
lea ecx, [ebp - 0x38]
jmp 0x4195cd
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x146], 1
je case.default.0x41953b
mov esi, dword [ebp - 0x150]
lea ecx, [ebp - 0x160]
call fcn.0040258e
cmp dword [edi + 0x34], 3
jne 0x4196cb
mov ecx, ebx
call fcn.0041649f
test al, al
je 0x4197a2
lea ecx, [ebp - 0x12c]
call fcn.0040d8d0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00401df6
lea ecx, [ebp - 0x15c]
call fcn.00401e85
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00436362
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x34], 4
jne 0x41977c
push ebx
lea ecx, [ebp - 0x20]
call fcn.004025a9
lea ecx, [ebp - 0x20]
call fcn.0041649f
test al, al
jne 0x4196f1
push 0x271b
jmp 0x419704
lea edx, [ebp - 0x20]
mov ecx, ebx
call fcn.00414500
test al, al
jne 0x41976b
push 0x271d
lea eax, [ebp - 0x38]
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004028a8
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401b55
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401df6
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0041a551
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.00401df6
push 0
push 1
jmp 0x4198d6
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00401df6
jmp 0x419692
cmp dword [edi + 0x34], 1
jne 0x41980e
lea ecx, [esi + 0x3c]
cmp ecx, ebx
je 0x419797
push 0xffffffffffffffff
push 0
push ebx
call fcn.00402073
mov ecx, ebx
call fcn.0041649f
test al, al
jne 0x419805
lea eax, [ebp - 0x38]
push 0x271b
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004028a8
push eax
lea ecx, [ebp - 0x6c]
call fcn.00401b55
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401df6
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0041a551
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 0x4198d9
mov byte [esi + 0x54], 1
jmp 0x419692
cmp byte [ebp - 0x146], 0
jne 0x419692
cmp byte [esi + 0x54], 0
jne 0x419692
mov ecx, ebx
call fcn.00414b80
test al, al
jne 0x419692
lea eax, [ebp - 0x38]
push 0x271c
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.004028a8
push eax
lea ecx, [ebp - 0x20]
call fcn.00401b55
xor ebx, ebx
lea ecx, [ebp - 0x38]
push 0
inc ebx
push ebx
call fcn.00401df6
lea eax, [ebp - 0x38]
push 0x2790
push eax
call fcn.004039a9
mov ecx, eax
call fcn.00416136
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004028a8
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401df6
lea ecx, [ebp - 0x38]
call fcn.00411840
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x20]
call fcn.004028a8
push 0
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401df6
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.0041a551
mov edx, dword [ebp - 0x14c]
push 0
push ebx
mov dword [edx], eax
lea ecx, [ebp - 0x20]
call fcn.00401df6
jmp 0x41990c
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
lea ecx, [ebp - 0x160]
call fcn.0040258e
jmp 0x41990c
cmp dword [edi + 0x2c], 2
jne 0x419692
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
lea ecx, [ebp - 0x12c]
call fcn.0040d8d0
xor bl, bl
jmp 0x41969f