Function at 0x424514
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 0x4247dd
xor edi, edi
cmp dword [esi + 0x14], 1
je 0x4247bd
test byte [esi + 0x50], 0xf
je 0x4245b1
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], 0x427f20
lea eax, [esi + 0xc8]
mov dword [esp], eax
call fcn.0041f4d8
mov edi, 0xfffffff4
cmp eax, 1
ja 0x4247bd
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.0041bf1c
mov dword [esp + 4], 0x8074b50
lea edi, [esp + 0x6c]
mov dword [esp], edi
call fcn.004193bc
mov eax, dword [esi + 0x70]
mov dword [esp + 4], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.004193bc
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.004193c8
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.004193c8
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 0x4247bd
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 0x424693
lea ecx, [esi + 0xa0]
mov eax, 0xfffffffe
cmp eax, dword [esi + 0x68]
mov eax, 0
sbb eax, dword [esi + 0x6c]
mov edx, 0
jae 0x4246ad
lea edx, [esi + 0x68]
mov eax, 0xfffffffe
cmp eax, dword [esi + 0x60]
mov eax, 0
sbb eax, dword [esi + 0x64]
mov eax, 0
jae 0x4246c7
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.0041c534
movzx edx, bx
test bx, bx
mov ebp, dword [esi + 0x5c]
je 0x424703
cmp byte [ebp + edx - 1], 0x2f
jne 0x424703
mov ecx, dword [esi + 0x64]
or ecx, dword [esi + 0x60]
jne 0x424703
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], 0x427f20
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.0041bfbc
mov edi, 0xfffffff1
test eax, eax
je 0x4247bd
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 0x4247dd
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