Function at 0x438887
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 0x438b4a
test ebx, ebx
je 0x438b4a
mov dword [esp], pe_nt_image_headers32
call fcn.00441941
mov esi, eax
xor eax, eax
test esi, esi
je 0x438ac7
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.00437d5e
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.00441941
mov dword [esi + 0x54], eax
test eax, eax
je 0x438b42
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 0x438c44
cmp dl, 0x77
je 0x438c3b
cmp dl, 0x61
je 0x438c3b
mov cl, dl
sub cl, 0x30
cmp cl, 9
ja 0x438c06
movsx ecx, dl
sub ecx, 0x30
mov dword [esp + 0x3c], ecx
inc ebx
test dl, dl
je 0x4389ff
lea edx, [esp + 0x90]
cmp edi, edx
jne 0x4389b9
movzx eax, byte [esi + 0x5c]
test al, al
je 0x438b42
cmp al, 0x77
je 0x438ba7
mov dword [esp], 0x4000
call fcn.00441941
mov dword [esi + 0x44], eax
mov dword [esi], eax
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x43886c
mov dword [esp + 4], 0xfffffff1
mov dword [esp], esi
call fcn.0043dba8
test eax, eax
jne 0x438b42
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x438b42
mov dword [esi + 0x10], 0x4000
call fcn.00441940
mov dword [eax], 0
mov ecx, dword [esp + 0xb8]
test ecx, ecx
js 0x438b51
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 0x438b42
cmp byte [esi + 0x5c], 0x77
je 0x438ad2
mov dword [esp], esi
xor edi, edi
call fcn.00438036
mov ecx, dword [esi + 0x40]
mov dword [esp], ecx
call fcn.0044163c
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], 0x438872
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esi + 0x60], 0xa
mov dword [esi + 0x64], 0
jmp 0x438ac2
mov dword [esp], esi
call fcn.004385ec
xor eax, eax
jmp 0x438ac7
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 0x438a8f
mov dword [esp + 0x1c], 0x38
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x43886c
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.00438e01
mov dword [esp], 0x4000
mov edi, eax
call fcn.00441941
mov dword [esi + 0x48], eax
test edi, edi
mov dword [esi + 0xc], eax
jne 0x438b42
test eax, eax
jmp 0x438a51
cmp dl, 0x66
je 0x438c31
cmp dl, 0x68
je 0x438c27
cmp dl, 0x52
je 0x438c1d
mov byte [edi], dl
inc edi
jmp 0x4389ef
mov ebp, 3
jmp 0x4389ef
mov ebp, 2
jmp 0x4389ef
mov ebp, 1
jmp 0x4389ef
mov byte [esi + 0x5c], 0x77
jmp 0x4389d7
mov byte [esi + 0x5c], 0x72
jmp 0x4389c5