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

Disassembly:
push ebp
xor ebp, ebp
push edi
push esi
push ebx
sub esp, 0x9c
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x3c], 0xffffffff
mov ebx, dword [esp + 0xb4]
lea edi, [esp + 0x40]
test edx, edx
je 0x43880c
test ebx, ebx
je 0x43880c
mov dword [esp], pe_nt_image_headers32
call fcn.00441603
mov esi, eax
xor eax, eax
test esi, esi
je 0x438789
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x44], 0
mov dword [esi], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 4], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00437a20
mov dword [esi + 0x4c], eax
mov edx, dword [esp + 0xb0]
mov dword [esi + 0x50], 0
mov dword [esi + 0x58], 0
mov dword [esp], edx
call dword [sym.imp.msvcrt.dll_wcslen]
inc eax
shl eax, 1
mov dword [esp], eax
call fcn.00441603
mov dword [esi + 0x54], eax
test eax, eax
je 0x438804
mov dword [esp], eax
mov ecx, dword [esp + 0xb0]
mov dword [esp + 4], ecx
call dword [sym.imp.msvcrt.dll_wcscpy]
mov byte [esi + 0x5c], 0
nop
lea esi, [esi]
movzx edx, byte [ebx]
cmp dl, 0x72
je 0x438906
cmp dl, 0x77
je 0x4388fd
cmp dl, 0x61
je 0x4388fd
mov cl, dl
sub cl, 0x30
cmp cl, 9
ja 0x4388c8
movsx ecx, dl
sub ecx, 0x30
mov dword [esp + 0x3c], ecx
inc ebx
test dl, dl
je 0x4386c1
lea edx, [esp + 0x90]
cmp edi, edx
jne 0x43867b
movzx eax, byte [esi + 0x5c]
test al, al
je 0x438804
cmp al, 0x77
je 0x438869
mov dword [esp], 0x4000
call fcn.00441603
mov dword [esi + 0x44], eax
mov dword [esi], eax
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x43852e
mov dword [esp + 4], 0xfffffff1
mov dword [esp], esi
call fcn.0043d86a
test eax, eax
jne 0x438804
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x438804
mov dword [esi + 0x10], 0x4000
call fcn.00441602
mov dword [eax], 0
mov ecx, dword [esp + 0xb8]
test ecx, ecx
js 0x438813
mov eax, dword [esp + 0xb8]
lea ebp, [esp + 0x40]
mov dword [esp + 4], ebp
mov dword [esp], eax
call sub.msvcrt.dll__fdopen
mov dword [esi + 0x40], eax
test eax, eax
je 0x438804
cmp byte [esi + 0x5c], 0x77
je 0x438794
mov dword [esp], esi
xor edi, edi
call fcn.00437cf8
mov ecx, dword [esi + 0x40]
mov dword [esp], ecx
call fcn.004412fe
mov ebx, dword [esi + 4]
sub eax, ebx
sbb edx, edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov eax, esi
nop
lea esi, [esi]
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], 0xb
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 0x8b
mov dword [esp + 8], 0x1f
mov dword [esp + 4], 0x438534
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esi + 0x60], 0xa
mov dword [esi + 0x64], 0
jmp 0x438784
mov dword [esp], esi
call fcn.004382ae
xor eax, eax
jmp 0x438789
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push eax
lea edx, [esp + 0xc]
push edx
push 0xffffffffffffffff
lea edx, [esp + 0x60]
push edx
push 0
push 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov edi, dword [esp + 0xc4]
lea edx, [esp + 8]
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wfopen]
add esp, 0x14
jmp 0x438751
mov dword [esp + 0x1c], 0x38
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x43852e
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], 0xfffffff1
mov dword [esp + 8], 8
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00438ac3
mov dword [esp], 0x4000
mov edi, eax
call fcn.00441603
mov dword [esi + 0x48], eax
test edi, edi
mov dword [esi + 0xc], eax
jne 0x438804
test eax, eax
jmp 0x438713
cmp dl, 0x66
je 0x4388f3
cmp dl, 0x68
je 0x4388e9
cmp dl, 0x52
je 0x4388df
mov byte [edi], dl
inc edi
jmp 0x4386b1
mov ebp, 3
jmp 0x4386b1
mov ebp, 2
jmp 0x4386b1
mov ebp, 1
jmp 0x4386b1
mov byte [esi + 0x5c], 0x77
jmp 0x438699
mov byte [esi + 0x5c], 0x72
jmp 0x438687