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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x180
mov eax, dword [0x464628]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
lea edx, [ebp - 0x15c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x14c], eax
mov edi, ecx
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x150], esi
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
call fcn.0040e49a
mov ecx, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], ecx
jne 0x412ca1
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
jmp 0x412d6f
mov eax, dword [edi + 0x30]
and dword [ebp - 0x168], 0
dec eax
je 0x412d76
dec eax
dec eax
jne 0x412d8b
mov eax, dword [edi + 0x64]
cmp eax, dword [edi + 0x68]
je 0x412d4c
mov eax, dword [edi + 0x68]
sub eax, dword [edi + 0x64]
push 0x18
cdq
pop ecx
idiv ecx
dec eax
mov dword [ebp - 0x164], eax
js 0x412d8b
imul edx, eax, 0x18
mov dword [ebp - 0x160], edx
mov ecx, dword [edi + 0x64]
xor eax, eax
add ecx, edx
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call fcn.0040e49a
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00414550
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x412d45
call fcn.004035e3
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 0x412ce8
jmp 0x412d8b
call fcn.004035e3
jmp 0x412d8b
lea eax, [ebp - 0x168]
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [edi + 0x58]
push eax
call fcn.00414550
test eax, eax
je 0x412d8b
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
xor bl, bl
jmp 0x413594
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.004041dd
pop ecx
lea ecx, [ebp - 0x15c]
call fcn.00417106
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x50]
call fcn.00417458
cmp dword [edi + 0x30], 2
mov byte [ebp - 0x145], 0
jne 0x412e78
cmp dword [ebp - 0x40], 1
jbe 0x412e78
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 2], 0x5f
jne 0x412e78
cmp dword [ebp - 0x40], 2
jne 0x412df8
cmp byte [ebx + 0x8c], 0
jne 0x412e1c
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x5c
je 0x412e1c
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
cmovae eax, dword [ebp - 0x50]
cmp word [eax + 4], 0x2f
jne 0x412e78
push 1
push 0
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004066d0
push 0x3a
pop eax
push eax
push 1
lea ecx, [ebp - 0x38]
call fcn.00406750
lea ecx, [ebp - 0x38]
call fcn.00429c80
test al, al
je 0x412e5f
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 - 0x38]
call fcn.00403547
cmp byte [ebp - 0x145], 0
jne 0x412f4d
cmp byte [edi + 0x39], 0
je 0x412f4d
lea eax, [edi + 0x88]
push eax
lea ecx, [ebp - 0xe8]
call fcn.004030a6
mov ecx, dword [ebp - 0xd8]
test ecx, ecx
jne 0x412ebc
lea eax, [edi + 0x70]
lea edx, [ebp - 0xe8]
cmp edx, eax
je 0x412ebc
push 0xffffffffffffffff
push ecx
push eax
mov ecx, edx
call fcn.0040348d
mov ecx, dword [ebp - 0xd8]
cmp byte [edi + 0xd1], 0
je 0x412ef0
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.00406940
test eax, eax
je 0x412f10
lea eax, [ebp - 0xe8]
push eax
push ecx
push dword [ebp - 0x15c]
lea eax, [ebp - 0x160]
push eax
lea ecx, [ebp - 0x15c]
call fcn.0040de2f
lea ecx, [ebp - 0x15c]
call fcn.00417106
lea edx, [ebp - 0x15c]
lea ecx, [ebp - 0x20]
call fcn.00417458
push eax
lea ecx, [ebp - 0x50]
call fcn.0040341a
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403547
push 0
push 1
lea ecx, [ebp - 0xe8]
call fcn.00403547
cmp byte [ebx + 0x8c], 0
jne 0x412f7e
mov eax, dword [ebp - 0x158]
cmp dword [ebp - 0x15c], eax
je 0x412f7e
lea esi, [eax - 0x18]
push 0
push 1
mov ecx, esi
call fcn.00403547
mov dword [ebp - 0x158], esi
mov esi, dword [ebp - 0x150]
mov cl, byte [ebx + 0x8c]
mov al, 1
test cl, cl
je 0x412f96
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 0x4131f0
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 0x413014
test cl, cl
je 0x412fe6
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040348d
jmp 0x412ff4
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x50]
call fcn.004291c0
lea ecx, [ebp - 0x94]
call fcn.00429e70
test al, al
jne 0x413010
lea ecx, [ebp - 0x94]
call fcn.00429f60
jmp 0x413029
mov al, 1
jmp 0x413030
lea eax, [ebp - 0x94]
mov ecx, edi
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00411f80
mov byte [ebp - 0x146], 1
test al, al
jne 0x413090
lea ecx, [ebp - 0x20]
call fcn.00428ec0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x413046
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 - 0x38]
push 0x271a
push eax
call fcn.00408696
add esp, 0x10
lea ecx, [ebp - 0x20]
push 0
push 1
call fcn.00403547
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414190
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00403547
cmp byte [ebp - 0x145], 0
jne 0x413193
cmp byte [ebx + 0x8c], 0
je 0x4131e1
cmp byte [edi + 0x54], 0
jne 0x4130c0
cmp byte [edi + 0x55], 0
jne 0x4130c0
cmp byte [edi + 0x56], 0
je 0x4131e1
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.0040348d
cmp byte [edi + 0x54], 0
je 0x41314e
cmp byte [ebx + 0x88], 0
je 0x41314e
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebx + 0x68]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 1
cmp byte [edi + 0x55], 0
je 0x413176
cmp byte [ebx + 0x89], 0
je 0x413176
mov eax, dword [ebx + 0x6c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 0xa4], 1
cmp byte [edi + 0x56], 0
je 0x4131a1
cmp byte [ebx + 0x8a], 0
je 0x4131a1
mov eax, dword [ebx + 0x74]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebx + 0x78]
jmp 0x4131b3
cmp byte [ebp - 0x146], 0
je 0x4131e1
jmp 0x41309d
mov eax, dword [edi + 0xa0]
mov dword [ebp - 0xa0], eax
mov eax, dword [edi + 0xa4]
mov dword [ebp - 0x9c], eax
lea ecx, [edi + 0x128]
lea eax, [ebp - 0xd0]
mov byte [ebp - 0x98], 1
push eax
call fcn.00414852
push 0
push 1
lea ecx, [ebp - 0xd0]
call fcn.00403547
push 0
push 1
lea ecx, [ebp - 0x94]
call fcn.00403547
mov ecx, esi
call fcn.00406670
cmp byte [ebp - 0x145], 0
lea eax, [ebp - 0x50]
je 0x413215
cmp esi, eax
je 0x413236
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.0040348d
jmp 0x413236
push eax
lea edx, [edi + 0x3c]
lea ecx, [ebp - 0x20]
call fcn.004076b0
pop ecx
push eax
mov ecx, esi
call fcn.0040341a
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403547
cmp byte [ebx + 0x8c], 0
je 0x41324d
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x413800
cmp byte [ebx + 0x20], 0
jne 0x413586
lea ecx, [ebp - 0x12c]
call fcn.00407a40
mov ecx, esi
mov byte [ebp - 0x146], 0
call fcn.00429c80
test al, al
je 0x4137e2
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.00407fb0
test al, al
je 0x4137e2
cmp dword [edi + 0x2c], 1
mov edx, dword [ebp - 0x114]
je 0x41329f
cmp dword [edi + 0x2c], 2
jne 0x4132da
cmp dword [edi + 0x34], 1
ja 0x4132da
xor ecx, ecx
lea eax, [ebx + 0x74]
cmp byte [ebx + 0x8a], cl
cmovne ecx, eax
test ecx, ecx
je 0x4137ec
mov eax, dword [ebp - 0x110]
cmp dword [ecx + 4], eax
jb 0x4137ec
ja 0x4132da
cmp dword [ecx], edx
jb 0x4137ec
jbe 0x4137ec
mov eax, dword [edi + 0x34]
sub eax, 0
je 0x4132ef
dec eax
dec eax
jne 0x413566
jmp 0x4137ec
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 - 0x28], edx
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x145], 0
movlpd qword [ebp - 0x16c], xmm0
call fcn.0040efd2
test al, al
je 0x413380
lea ecx, [ebp - 0x7c]
call fcn.004292e0
lea ecx, [edi + 0x1c]
call fcn.0040839f
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 0x413378
cmp dword [ebp - 0x7c], eax
setne al
mov byte [ebp - 0x145], al
test al, al
je 0x413378
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.00429350
lea eax, [edi + 0x118]
mov dword [ebp - 0x160], eax
test eax, eax
je 0x41339d
cmp dword [eax], 0
je 0x41339d
push dword [eax]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [edi + 0x20]
call fcn.0040839f
push dword [ebp - 0x150]
mov edx, eax
lea ecx, [ebp - 0x16c]
lea eax, [ebp - 0x164]
push eax
xor eax, eax
cmp byte [ebp - 0x145], al
mov esi, dword [edx]
cmove ecx, eax
lea eax, [ebx + 0x74]
push 1
push ecx
xor ecx, ecx
cmp byte [ebx + 0x8a], cl
cmovne ecx, eax
lea eax, [ebp - 0x17c]
push ecx
push dword [ebp - 0x170]
mov ecx, edx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x150]
call dword [esi + 0x18]
test eax, eax
je 0x413406
mov edx, dword [ebp - 0x14c]
mov dword [edx], eax
jmp 0x4137d5
mov eax, dword [ebp - 0x164]
cmp eax, 7
ja case.default.0x413415
jmp dword [eax*4 + 0x413809]
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004004
jmp 0x4137d5
mov dword [edi + 0x34], 2
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
jmp 0x4137d5
mov dword [edi + 0x34], 1
mov esi, dword [ebp - 0x150]
jmp 0x41355b
mov esi, dword [ebp - 0x150]
lea ecx, [ebx + 0x3c]
cmp ecx, esi
je 0x41346b
push 0xffffffffffffffff
push 0
push esi
call fcn.0040348d
mov ecx, esi
call fcn.004174cf
test al, al
jne 0x4134e7
lea eax, [ebp - 0x144]
push 0x271b
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x144]
call fcn.00403b45
push eax
lea ecx, [ebp - 0x6c]
call fcn.004030f3
lea ecx, [ebp - 0x144]
push 0
push 1
call fcn.00403547
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414190
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.00403547
jmp 0x4137d5
mov byte [ebx + 0x54], 1
jmp 0x41355b
mov dword [edi + 0x34], 3
jmp 0x413449
mov esi, dword [ebp - 0x150]
mov ecx, esi
mov byte [ebp - 0x146], 1
call fcn.004174cf
test al, al
jne 0x41355b
lea eax, [ebp - 0x20]
push 0x271b
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00403b45
push eax
lea ecx, [ebp - 0x6c]
call fcn.004030f3
lea ecx, [ebp - 0x20]
jmp 0x4134ad
mov esi, dword [ebp - 0x150]
mov byte [ebp - 0x146], 1
cmp dword [esi + 0x10], 0
je case.default.0x413415
lea ecx, [ebp - 0x160]
call fcn.0040bbf2
cmp dword [edi + 0x34], 3
jne 0x4135b4
mov ecx, esi
call fcn.004174cf
test al, al
je 0x41368b
lea ecx, [ebp - 0x12c]
call fcn.00407ae0
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.00403547
lea ecx, [ebp - 0x15c]
call fcn.004035e3
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00437430
mov esp, ebp
pop ebp
ret 0x14
cmp dword [edi + 0x34], 4
jne 0x413665
push esi
lea ecx, [ebp - 0x38]
call fcn.004030a6
lea ecx, [ebp - 0x38]
call fcn.004174cf
test al, al
jne 0x4135da
push 0x271b
jmp 0x4135ed
lea edx, [ebp - 0x38]
mov ecx, esi
call fcn.00429070
test al, al
jne 0x413654
push 0x271d
lea eax, [ebp - 0x20]
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00403b45
push eax
lea ecx, [ebp - 0x6c]
call fcn.004030f3
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403547
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414190
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.00403547
push 0
push 1
jmp 0x4137bf
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00403547
jmp 0x41357b
cmp dword [edi + 0x34], 1
jne 0x4136f7
lea ecx, [ebx + 0x3c]
cmp ecx, esi
je 0x413680
push 0xffffffffffffffff
push 0
push esi
call fcn.0040348d
mov ecx, esi
call fcn.004174cf
test al, al
jne 0x4136ee
lea eax, [ebp - 0x20]
push 0x271b
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00403b45
push eax
lea ecx, [ebp - 0x6c]
call fcn.004030f3
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.00403547
lea eax, [ebp - 0x6c]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414190
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 0x4137c2
mov byte [ebx + 0x54], 1
jmp 0x41357b
cmp byte [ebp - 0x146], 0
jne 0x41357b
cmp byte [ebx + 0x54], 0
jne 0x41357b
mov ecx, esi
call fcn.0042b640
test al, al
jne 0x41357b
lea eax, [ebp - 0x20]
push 0x271c
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x20]
call fcn.00403b45
push eax
lea ecx, [ebp - 0x38]
call fcn.004030f3
xor ebx, ebx
lea ecx, [ebp - 0x20]
push 0
inc ebx
push ebx
call fcn.00403547
lea eax, [ebp - 0x20]
push 0x2790
push eax
call fcn.004040ec
mov ecx, eax
call fcn.004084ce
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00403b45
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00403547
lea ecx, [ebp - 0x20]
call fcn.00428ec0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x38]
call fcn.00403b45
push 0
push ebx
lea ecx, [ebp - 0x20]
call fcn.00403547
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
push dword [ebp + 8]
call fcn.00414190
mov edx, dword [ebp - 0x14c]
push 0
push ebx
mov dword [edx], eax
lea ecx, [ebp - 0x38]
call fcn.00403547
jmp 0x4137f5
mov edx, dword [ebp - 0x14c]
mov dword [edx], 0x80004005
lea ecx, [ebp - 0x160]
call fcn.0040bbf2
jmp 0x4137f5
cmp dword [edi + 0x2c], 2
jne 0x41357b
mov edx, dword [ebp - 0x14c]
and dword [edx], 0
lea ecx, [ebp - 0x12c]
call fcn.00407ae0
xor bl, bl
jmp 0x413588