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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xac
mov esi, dword [esp + 0xc0]
mov word [esp + 0x68], 0
mov word [esp + 0x6a], 0
or edi, 0xffffffff
test esi, esi
je 0x414bd5
xor edi, edi
cmp dword [esi + 0x14], 1
je 0x414bb5
test byte [esi + 0x50], 0xf
je 0x4149a9
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x417480
lea eax, [esi + 0xc8]
mov dword [esp], eax
call fcn.00410b98
mov edi, 0xfffffff4
cmp eax, 1
ja 0x414bb5
mov eax, dword [esi + 0xc0]
mov edx, dword [esi + 0xc4]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov eax, dword [esi + 0xb8]
mov edx, dword [esi + 0xbc]
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], edx
mov word [esi + 0xa8], 8
mov eax, dword [esi + 0x5c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [esp + 0x6a]
mov dword [esp + 8], eax
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
mov eax, dword [esi + 0x4e00c]
mov dword [esp], eax
call fcn.0040e098
mov dword [esp + 4], 0x8074b50
lea edi, [esp + 0x6c]
mov dword [esp], edi
call fcn.0040b538
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.0040b538
mov eax, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [esp + 0x74]
mov dword [esp], eax
call fcn.0040b544
mov eax, dword [esi + 0x60]
mov edx, dword [esi + 0x64]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
lea eax, [esp + 0x7c]
mov dword [esp], eax
call fcn.0040b544
mov dword [esp + 0x10], 0x18
mov dword [esp + 0xc], edi
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [esi + 0x44]
mov dword [esp], eax
call dword [esi + 0x3c]
mov edi, 0xfffffff2
cmp eax, 0x18
jne 0x414bb5
add dword [esi + 0x78], 0x18
adc dword [esi + 0x7c], 0
mov eax, 0xfffffffe
cmp eax, dword [esi + 0xa0]
mov eax, 0
sbb eax, dword [esi + 0xa4]
mov ecx, 0
jae 0x414a8b
lea ecx, [esi + 0xa0]
mov eax, 0xfffffffe
cmp eax, dword [esi + 0x68]
mov eax, 0
sbb eax, dword [esi + 0x6c]
mov edx, 0
jae 0x414aa5
lea edx, [esi + 0x68]
mov eax, 0xfffffffe
cmp eax, dword [esi + 0x60]
mov eax, 0
sbb eax, dword [esi + 0x64]
mov eax, 0
jae 0x414abf
lea eax, [esi + 0x60]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea edi, [esp + 0x84]
mov dword [esp], edi
call fcn.0040e6b0
movzx edx, bx
test bx, bx
mov ebp, dword [esi + 0x5c]
je 0x414afb
cmp byte [ebp + edx - 1], 0x2f
jne 0x414afb
mov ecx, dword [esi + 0x64]
or ecx, dword [esi + 0x60]
jne 0x414afb
or dword [esi + 0x4e008], 0x10
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov ecx, dword [esi + 0x4e008]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 0xa0]
mov ebx, dword [esi + 0xa4]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
movzx ecx, word [esp + 0x6a]
mov dword [esp + 0x3c], ecx
movzx ecx, word [esp + 0x68]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], 0x808
movzx ecx, word [esi + 0xa8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x70]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x68]
mov ebx, dword [esi + 0x6c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebx
mov ecx, dword [esi + 0x60]
mov ebx, dword [esi + 0x64]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x417480
movzx eax, ax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edx
mov dword [esp + 4], ebp
mov dword [esp], esi
call fcn.0040e138
mov edi, 0xfffffff1
test eax, eax
je 0x414bb5
inc dword [esi + 0x10]
mov eax, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
mov dword [esi], eax
mov dword [esi + 4], edx
xor edi, edi
mov dword [esi + 0x4e00c], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x414bd5
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esi + 0x5c], 0
mov eax, edi
add esp, 0xac
pop ebx
pop esi
pop edi
pop ebp
ret