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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x464628]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esp + 0x20], ecx
lea ecx, [esi - 8]
mov dword [esp + 0x18], esi
push eax
mov dword [esp + 0x2c], ecx
call fcn.004142de
lea ecx, [esp + 0xc]
mov ebx, eax
call fcn.0040d357
lea edi, [ebx + 0x60]
push ecx
mov ecx, edi
call fcn.0040f0c1
test al, al
je 0x413a51
mov ecx, edi
call fcn.0040844f
mov esi, eax
lea ecx, [esp + 0xc]
mov edi, dword [esi]
call fcn.00403a72
push eax
push 0x411
mov ecx, esi
call dword [edi]
test eax, eax
je 0x413a4a
push ecx
lea ecx, [esp + 0x10]
call fcn.00414cd7
mov esi, dword [esp + 0x18]
lea edi, [ebx + 0x60]
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x24], 0
push ecx
lea ecx, [esp + 0x10]
test eax, eax
je 0x413ac5
dec eax
cmp eax, 6
ja 0x413a8f
call fcn.0040f0c1
test al, al
je 0x413aef
lea ecx, [esp + 0xc]
call fcn.0040844f
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00414cd7
jmp 0x413aef
call fcn.0040f0c1
test al, al
je 0x413ab4
lea ecx, [esp + 0xc]
call fcn.0040844f
push 0
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00414cd7
mov ecx, edi
call fcn.00411314
mov esi, 0x80004005
jmp 0x413f5c
call fcn.0040f0c1
test al, al
je 0x413aea
lea ecx, [esp + 0xc]
call fcn.0040844f
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
push ecx
lea ecx, [esp + 0x10]
call fcn.00414cd7
mov byte [esp + 0x24], 1
push ecx
mov ecx, edi
call fcn.0040f0c1
test al, al
je 0x413bd9
mov dl, byte [esi + 0x64]
xor edi, edi
test dl, dl
jne 0x413b12
cmp byte [esi + 0x66], dl
jne 0x413b12
cmp byte [esi + 0x65], dl
je 0x413b86
mov cl, byte [esi + 0x66]
test cl, cl
je 0x413b27
cmp byte [ebx + 0x8a], 0
je 0x413b27
lea edi, [ebx + 0x74]
jmp 0x413b34
xor edi, edi
lea eax, [esi + 0xb0]
test cl, cl
cmovne edi, eax
cmp byte [esi + 0x65], 0
je 0x413b4c
cmp byte [ebx + 0x89], 0
je 0x413b4c
lea eax, [ebx + 0x6c]
mov dword [esp + 0x14], eax
jmp 0x413b51
and dword [esp + 0x14], 0
test dl, dl
je 0x413b67
cmp byte [ebx + 0x88], 0
je 0x413b67
lea eax, [ebx + 0x64]
mov dword [esp + 0x10], eax
jmp 0x413b6c
and dword [esp + 0x10], 0
lea ecx, [ebx + 0x60]
call fcn.0040844f
push edi
push dword [esp + 0x18]
mov ecx, eax
mov edx, dword [eax]
push dword [esp + 0x18]
call dword [edx + 0x1c]
mov edi, eax
lea ecx, [ebx + 0x60]
call fcn.0040844f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x24]
cmp byte [esp + 0x24], 0
mov dword [ebx + 0x58], eax
mov dword [ebx + 0x5c], edx
jne 0x413bb1
lea ecx, [ebx + 0x60]
call fcn.0040844f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x28]
lea ecx, [ebx + 0x60]
call fcn.0040844f
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
lea ecx, [ebx + 0x60]
cmovne edi, eax
mov dword [esp + 0x10], edi
call fcn.00411314
test edi, edi
jne 0x413d2e
mov eax, dword [ebx + 0x58]
add dword [esi + 0xf8], eax
mov eax, dword [ebx + 0x5c]
adc dword [esi + 0xfc], eax
cmp byte [ebx + 0x8c], 0
je 0x413c04
add dword [esi + 0xe8], 1
adc dword [esi + 0xec], 0
jmp 0x413c12
add dword [esi + 0xf0], 1
adc dword [esi + 0xf4], 0
cmp byte [ebx + 0x55], 0
je 0x413c40
cmp byte [ebx + 0x8b], 0
je 0x413c40
cmp byte [ebx + 0x8e], 0
jne 0x413c40
push dword [ebx + 0x84]
lea ecx, [ebx + 0x24]
push dword [ebx + 0x80]
call fcn.00429250
pop ecx
pop ecx
push ecx
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call fcn.0040f0c1
test al, al
je 0x413c8d
cmp byte [ebx + 0x8e], 0
jne 0x413cf4
lea ecx, [esi + 0x18]
call fcn.0040844f
push dword [esp + 0x20]
movzx ecx, byte [ebx + 0x56]
push ecx
push dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, eax
push dword [esp + 0x28]
call dword [edx + 0x28]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x413d2e
and dword [esp + 0x6c], 0
xor eax, eax
mov dword [esp + 0x70], 7
mov word [esp + 0x5c], ax
cmp byte [ebx + 0x8e], al
jne 0x413e6e
cmp byte [esp + 0x24], al
jne 0x413d37
cmp byte [esi + 0x30], al
jne 0x413e6e
lea ecx, [ebx + 0x24]
call fcn.00429830
test al, al
je 0x413e6e
lea ecx, [ebx + 0x24]
call fcn.0042b850
test al, al
jne 0x413e6e
lea eax, [ebx + 0x24]
push eax
lea ecx, [esi + 0x12c]
call fcn.00403149
jmp 0x413e6e
cmp byte [ebx + 0x8c], 0
jne 0x413c8d
lea ecx, [esi + 0x18]
call fcn.0040844f
push dword [esp + 0x20]
movzx ecx, byte [ebx + 0x56]
push ecx
push dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, eax
push dword [esp + 0x28]
call dword [edx + 0x28]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x413c8d
mov dword [esp + 0x10], edi
mov esi, dword [esp + 0x10]
jmp 0x413f5c
cmp byte [ebx + 0x8c], al
jne 0x413e6e
cmp byte [ebx + 0x54], al
je 0x413e6e
lea eax, [ebx + 0x3c]
mov ecx, eax
mov dword [esp + 0x20], eax
call fcn.00429830
test al, al
je 0x413e4f
lea ecx, [ebx + 0x3c]
call fcn.0042b850
test al, al
jne 0x413e2b
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004066b0
push 0x271c
lea eax, [esp + 0x30]
push eax
call fcn.004040ec
mov ecx, eax
call fcn.0040857e
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [esp + 0x38]
call fcn.00403b45
push eax
lea ecx, [esp + 0x48]
call fcn.004030f3
xor ebx, ebx
lea ecx, [esp + 0x2c]
push ebx
push 1
call fcn.00403547
lea eax, [esp + 0x2c]
push 0x2790
push eax
call fcn.004040ec
mov ecx, eax
call fcn.0040857e
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x50]
call fcn.00403b45
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00403547
lea ecx, [esp + 0x2c]
call fcn.004290d0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x50]
call fcn.00403b45
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.00403547
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x20]
call fcn.00414399
mov esi, eax
lea ecx, [esp + 0x44]
jmp 0x413f48
lea ecx, [ebx + 0x24]
lea edx, [ebx + 0x3c]
call fcn.00429280
test al, al
jne 0x413e4f
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.004066b0
push 0x271d
jmp 0x413d82
lea ecx, [esp + 0x5c]
lea eax, [ebx + 0x3c]
cmp ecx, eax
je 0x413e67
push 0xffffffffffffffff
push 0
push eax
call fcn.0040348d
lea eax, [ebx + 0x3c]
mov ecx, eax
call fcn.004066b0
lea eax, [ebx + 0x24]
push eax
lea ecx, [esp + 0x78]
call fcn.004030a6
test edi, edi
jne 0x413efb
push ecx
lea ecx, [esi + 0x18]
call fcn.0040f0c1
test al, al
je 0x413efb
lea ecx, [esp + 0x14]
call fcn.0040d357
lea ecx, [esi + 0x18]
call fcn.0040844f
mov esi, eax
lea ecx, [esp + 0x14]
mov edi, dword [esi]
call fcn.00403a72
push eax
push 0x801
mov ecx, esi
call dword [edi]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f0c1
test al, al
je 0x413eee
lea ecx, [esp + 0x14]
call fcn.0040844f
cmp dword [esp + 0x6c], 0
mov esi, dword [esp + 0x18]
mov edx, dword [eax]
je 0x413ee8
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esi + 0x4c]
push ecx
mov ecx, eax
call dword [edx + 0x14]
jmp 0x413ef2
lea ecx, [esp + 0x74]
jmp 0x413edc
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call fcn.00404246
push dword [esp + 0x1c]
lea ecx, [esi - 8]
call fcn.00414349
push ecx
lea ecx, [esi + 0x1c]
call fcn.0040f0c1
test al, al
je 0x413f3e
lea ecx, [esi + 0x1c]
call fcn.0040844f
push dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0x78]
sub esp, 0x18
mov ecx, esp
mov edi, dword [esi]
push eax
call fcn.004030a6
mov ecx, esi
call dword [edi + 0x10]
mov esi, eax
test eax, eax
jne 0x413f42
mov esi, dword [esp + 0x10]
xor ebx, ebx
lea ecx, [esp + 0x74]
push ebx
push 1
call fcn.00403547
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.00403547
lea ecx, [esp + 0xc]
call fcn.00404246
mov ecx, dword [esp + 0x8c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00437670
mov esp, ebp
pop ebp
ret 0xc