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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xd8], eax
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
lea eax, [ebp - 0xe8]
mov esi, edx
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
call fcn.00417295
pop ecx
lea eax, [ebp - 0xe8]
call fcn.00401da7
cmp eax, ebx
jne 0x412f5d
mov dword [edi], 0x80004005
lea esi, [ebp - 0xe8]
call fcn.00402119
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432e8b
leave
ret 0x10
mov ecx, dword [esi + 0x30]
dec ecx
mov dword [ebp - 0xec], ebx
je 0x413020
dec ecx
dec ecx
jne 0x413027
lea edi, [esi + 0x6c]
mov eax, edi
call fcn.00401da7
test eax, eax
je 0x412ff9
mov eax, edi
call fcn.00401da7
dec eax
mov dword [ebp - 0xfc], eax
js 0x413027
mov esi, dword [ebp - 0xd0]
push dword [ebp - 0xfc]
add esi, 0x6c
call fcn.00409af3
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00417295
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0xec]
call fcn.00414839
test eax, eax
lea esi, [ebp - 0x14]
je 0x412fec
call fcn.00402119
dec dword [ebp - 0xfc]
jns 0x412f97
jmp 0x412ff1
call fcn.00402119
mov esi, dword [ebp - 0xd0]
jmp 0x413027
lea eax, [ebp - 0xe8]
push eax
lea eax, [esi + 0x5c]
push eax
lea edi, [ebp - 0xec]
call fcn.00414839
cmp eax, ebx
je 0x413027
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
jmp 0x412f3f
dec eax
mov dword [ebp - 0xec], eax
push dword [ebp - 0xec]
xor edi, edi
lea eax, [ebp - 0xe8]
call fcn.00411857
pop ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00416f12
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea edi, [ebp - 0x3c]
call fcn.00417221
cmp dword [esi + 0x30], 2
pop ecx
mov byte [ebp - 0xca], bl
jne 0x41311e
xor edi, edi
inc edi
cmp dword [ebp - 0x28], edi
jbe 0x41311e
lea eax, [ebp - 0x3c]
call fcn.00405c6c
cmp word [eax], 0x5f
jne 0x41311e
push 2
pop edi
cmp dword [ebp - 0x28], edi
jne 0x41309c
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
jne 0x4130b8
lea eax, [ebp - 0x3c]
call fcn.00405c6c
cmp word [eax], 0x5c
je 0x4130b8
lea eax, [ebp - 0x3c]
call fcn.00405c6c
cmp word [eax], 0x2f
jne 0x41311e
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], 7
call fcn.004022c9
push 0x3a
lea esi, [ebp - 0x20]
call fcn.00403a37
mov eax, esi
push eax
call fcn.0040ddb6
test al, al
pop ecx
je 0x413104
xor edi, edi
inc edi
lea eax, [ebp - 0x3c]
call fcn.00405c6c
mov word [eax], 0x3a
mov byte [ebp - 0xca], 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00402032
cmp byte [ebp - 0xca], bl
jne 0x4131d8
xor ebx, ebx
mov edi, dword [ebp - 0xd0]
cmp byte [edi + 0x39], bl
je 0x4131da
cmp byte [edi + 0xc9], bl
je 0x413171
mov esi, dword [ebp - 0xe4]
cmp esi, dword [ebp - 0xe0]
jbe 0x413148
call fcn.00432d0c
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xfc], esi
lea esi, [ebp - 0x100]
mov dword [ebp - 0x100], eax
call fcn.00405c8c
lea ecx, [edi + 0x7c]
call fcn.00403afb
test eax, eax
je 0x4131a1
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xe0]
mov esi, eax
jbe 0x413186
call fcn.00432d0c
push esi
lea eax, [ebp - 0xe8]
push eax
add edi, 0x7c
push edi
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 0xe8]
call fcn.00402079
lea eax, [ebp - 0xe8]
push eax
call fcn.00416f12
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea edi, [ebp - 0x11c]
call fcn.00417221
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
push ecx
xor ebx, ebx
call fcn.004022c9
push ebx
push 1
mov esi, edi
call fcn.00402032
xor ebx, ebx
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
jne 0x41320d
lea eax, [ebp - 0xe8]
call fcn.00401da7
test eax, eax
je 0x41320d
mov eax, dword [ebp - 0xe0]
push eax
add eax, 0xffffffe4
call fcn.00402368
sub dword [ebp - 0xe0], 0x1c
mov al, byte [esi + 0x9c]
cmp al, bl
mov edx, dword [ebp - 0xd0]
mov cl, 1
je 0x413227
cmp dword [edx + 0x30], 1
jne 0x413227
xor cl, cl
cmp dword [edx + 0x2c], 2
jne 0x41322f
xor cl, cl
cmp cl, bl
je 0x41342e
cmp byte [ebp - 0xca], bl
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
mov byte [ebp - 0xc9], bl
je 0x41328f
cmp al, bl
lea eax, [ebp - 0x20]
je 0x413269
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
call fcn.004022c9
jmp 0x413273
push eax
lea edi, [ebp - 0x3c]
call fcn.0040e86f
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040de80
test al, al
pop ecx
jne 0x41328b
lea ecx, [ebp - 0x20]
call fcn.0040e792
jmp 0x4132a0
mov al, 1
jmp 0x4132a7
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xe8]
push eax
push edx
call fcn.004121d2
mov byte [ebp - 0xc9], 1
cmp al, bl
jne 0x41330d
lea esi, [ebp - 0x11c]
call fcn.0040ed13
cmp dword [eax + 0x18], 8
jb 0x4132c1
mov eax, dword [eax + 4]
jmp 0x4132c4
add eax, 4
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x4132d0
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x271a
lea ecx, [ebp - 0x5c]
call fcn.00404cd9
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.004145ed
push ebx
push 1
lea esi, [ebp - 0x5c]
call fcn.00402032
cmp byte [ebp - 0xca], bl
jne 0x4133e4
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
je 0x413423
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0x58], bl
jne 0x413344
cmp byte [eax + 0x59], bl
jne 0x413344
cmp byte [eax + 0x5a], bl
je 0x413423
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x7c], bx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], bl
push eax
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 7
call fcn.004022c9
mov ecx, dword [ebp - 0xd0]
cmp byte [ecx + 0x58], bl
mov eax, dword [ebp - 0xf4]
je 0x4133a6
cmp byte [eax + 0x98], bl
je 0x4133a6
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x5c], 1
cmp byte [ecx + 0x59], bl
je 0x4133c6
cmp byte [eax + 0x99], bl
je 0x4133c6
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x80]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 1
cmp byte [ecx + 0x5a], bl
je 0x4133f1
cmp byte [eax + 0x9a], bl
je 0x4133f1
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x4c], edx
jmp 0x413400
cmp byte [ebp - 0xc9], bl
je 0x413423
jmp 0x413319
mov eax, dword [ecx + 0x98]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x9c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
lea esi, [ecx + 0x12c]
mov byte [ebp - 0x44], 1
call fcn.00414c3c
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.00402032
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00402032
mov eax, dword [ebp - 0xd8]
call fcn.00402a34
cmp byte [ebp - 0xca], bl
lea eax, [ebp - 0x3c]
je 0x413455
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004022c9
jmp 0x41348a
push eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x11c]
add eax, 0x3c
push ecx
call fcn.00402bc6
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004022c9
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
je 0x4134b0
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00402032
jmp 0x412f3f
cmp byte [esi + 0x28], bl
jne 0x4139e4
lea eax, [ebp - 0xc8]
call fcn.0040dc77
push dword [ebp - 0xd8]
mov byte [ebp - 0xca], bl
call fcn.0040ddb6
test al, al
pop ecx
je 0x413b7d
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xd8]
call fcn.0040e4c8
test al, al
pop ecx
pop ecx
je 0x413b7d
mov edi, dword [ebp - 0xd0]
mov eax, dword [edi + 0x2c]
cmp eax, 1
je 0x41350d
cmp eax, 2
jne 0x413551
cmp dword [edi + 0x34], 1
ja 0x413551
lea eax, [ebp - 0xc8]
call fcn.00411788
mov cl, byte [esi + 0x9a]
neg cl
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
call fcn.0042bef9
test eax, eax
jg 0x413551
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040dca5
jmp 0x4134a0
mov eax, dword [edi + 0x34]
sub eax, ebx
je 0x413562
dec eax
dec eax
jne 0x413701
jmp 0x413539
lea ecx, [ebp - 0xc8]
call fcn.0040dd3f
mov dword [ebp - 0x128], eax
mov eax, ecx
mov dword [ebp - 0x124], edx
call fcn.00411788
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
lea eax, [edi + 0x1c]
mov byte [ebp - 0xc9], bl
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
call fcn.00421cb8
test al, al
je 0x413602
lea eax, [ebp - 0x68]
call fcn.0040f0c8
lea eax, [edi + 0x1c]
call fcn.0041e17c
mov edx, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
push 7
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x1c]
test eax, eax
jne 0x4135fa
lea eax, [ebp - 0x68]
call fcn.0041e17c
test eax, eax
setne byte [ebp - 0xc9]
cmp byte [ebp - 0xc9], bl
je 0x4135fa
lea ecx, [ebp - 0x68]
call fcn.0040dd4d
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edx
lea eax, [ebp - 0x68]
call fcn.0040f0e1
lea eax, [edi + 0x118]
cmp eax, ebx
mov dword [ebp - 0xd0], eax
je 0x413617
call fcn.0041001c
lea eax, [edi + 0x20]
call fcn.0041e17c
push dword [ebp - 0xd8]
mov dl, byte [ebp - 0xc9]
neg dl
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xf8]
push 1
mov dword [ebp - 0xfc], eax
mov eax, dword [eax]
sbb edx, edx
and edx, ecx
mov cl, byte [esi + 0x9a]
neg cl
push edx
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
push ecx
push dword [ebp - 0x120]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xfc]
call dword [eax + 0x18]
cmp eax, ebx
je 0x4136a0
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
cmp eax, ebx
je 0x413541
call fcn.0041002a
jmp 0x413541
mov eax, dword [ebp - 0xec]
cmp eax, 7
ja 0x4138f6
jmp dword [eax*4 + 0x412fca]
cmp dword [ebp - 0xd0], ebx
je 0x413541
mov eax, dword [ebp - 0xd0]
jmp 0x413696
mov eax, dword [edi + 0x34]
cmp eax, 3
jne 0x413918
mov ecx, dword [ebp - 0xd8]
call fcn.00411042
test al, al
jne 0x4139d9
push 0x271b
call fcn.00405cdc
lea ecx, [ebp - 0x11c]
call fcn.00410c91
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00402bc6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004145ed
cmp eax, ebx
push ebx
lea esi, [ebp - 0x5c]
push 1
je 0x413907
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00402032
jmp 0x413541
lea eax, [ebp - 0xc8]
call fcn.0040dca5
push edi
push ebx
jmp 0x4134a3
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x4136c2
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x41377e
cmp eax, 4
jne 0x4139f0
mov eax, dword [ebp - 0xd8]
lea esi, [ebp - 0x20]
call fcn.00402686
mov ecx, esi
call fcn.00411042
test al, al
jne 0x4139b2
push 0x271b
call fcn.00405cdc
lea ecx, [ebp - 0x11c]
call fcn.00410c91
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00402bc6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004145ed
cmp eax, ebx
push ebx
push 1
lea esi, [ebp - 0x5c]
je 0x4139a4
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00402032
push ebx
push 1
lea esi, [ebp - 0x20]
jmp 0x41377e
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413994
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
call fcn.0040e788
test al, al
jne 0x4139ce
push 0x271d
jmp 0x41393f
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00402032
lea eax, [ebp - 0xc8]
call fcn.0040dca5
mov byte [ebp - 0xc9], 1
jmp 0x413ba6
cmp eax, 1
jne 0x413a99
push 0xffffffffffffffff
lea eax, [esi + 0x48]
push eax
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004022c9
mov ecx, dword [ebp - 0xd8]
call fcn.00411042
test al, al
jne 0x413a8e
push 0x271b
call fcn.00405cdc
lea ecx, [ebp - 0x11c]
call fcn.00410c91
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00402bc6
pop ecx
pop ecx
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x11c]
call fcn.00402032
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004145ed
xor edi, edi
cmp eax, edi
push edi
lea esi, [ebp - 0x5c]
push ebx
je 0x413a80
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00402032
jmp 0x41381d
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x413a76
mov byte [esi + 0x64], 1
xor ebx, ebx
jmp 0x4139d9
cmp byte [ebp - 0xca], bl
jne 0x4139d9
cmp byte [esi + 0x64], bl
jne 0x4139d9
push dword [ebp - 0xd8]
call fcn.0040e797
test al, al
pop ecx
jne 0x4139d9
push 0x271c
call fcn.00405cdc
lea ecx, [ebp - 0x11c]
call fcn.00410c91
push dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x11c]
call fcn.00402bc6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
push 0x2790
call fcn.00405cdc
lea ecx, [ebp - 0x11c]
call fcn.00410c91
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x11c]
lea esi, [ebp - 0x20]
call fcn.00402c1b
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
lea esi, [ebp - 0x11c]
call fcn.0040ed13
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x20]
call fcn.00402c1b
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00402032
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004145ed
cmp eax, ebx
push ebx
lea esi, [ebp - 0x20]
push 1
jne 0x413776
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
jmp 0x41377e
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0x2c], 2
jne 0x4139d9
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040dca5
mov byte [ebp - 0xc9], bl
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00402032
lea esi, [ebp - 0xe8]
call fcn.00402119
mov al, byte [ebp - 0xc9]
jmp 0x412f4c