Function at 0x438889
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 0x438b4c
test ebx, ebx
je 0x438b4c
mov dword [esp], pe_nt_image_headers32
call fcn.00441943
mov esi, eax
xor eax, eax
test esi, esi
je 0x438ac9
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.00437d60
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.00441943
mov dword [esi + 0x54], eax
test eax, eax
je 0x438b44
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 0x438c46
cmp dl, 0x77
je 0x438c3d
cmp dl, 0x61
je 0x438c3d
mov cl, dl
sub cl, 0x30
cmp cl, 9
ja 0x438c08
movsx ecx, dl
sub ecx, 0x30
mov dword [esp + 0x3c], ecx
inc ebx
test dl, dl
je 0x438a01
lea edx, [esp + 0x90]
cmp edi, edx
jne 0x4389bb
movzx eax, byte [esi + 0x5c]
test al, al
je 0x438b44
cmp al, 0x77
je 0x438ba9
mov dword [esp], 0x4000
call fcn.00441943
mov dword [esi + 0x44], eax
mov dword [esi], eax
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x43886e
mov dword [esp + 4], 0xfffffff1
mov dword [esp], esi
call fcn.0043dbaa
test eax, eax
jne 0x438b44
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x438b44
mov dword [esi + 0x10], 0x4000
call fcn.00441942
mov dword [eax], 0
mov ecx, dword [esp + 0xb8]
test ecx, ecx
js 0x438b53
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 0x438b44
cmp byte [esi + 0x5c], 0x77
je 0x438ad4
mov dword [esp], esi
xor edi, edi
call fcn.00438038
mov ecx, dword [esi + 0x40]
mov dword [esp], ecx
call fcn.0044163e
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], 0x438874
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esi + 0x60], 0xa
mov dword [esi + 0x64], 0
jmp 0x438ac4
mov dword [esp], esi
call fcn.004385ee
xor eax, eax
jmp 0x438ac9
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 0x438a91
mov dword [esp + 0x1c], 0x38
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x43886e
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.00438e03
mov dword [esp], 0x4000
mov edi, eax
call fcn.00441943
mov dword [esi + 0x48], eax
test edi, edi
mov dword [esi + 0xc], eax
jne 0x438b44
test eax, eax
jmp 0x438a53
cmp dl, 0x66
je 0x438c33
cmp dl, 0x68
je 0x438c29
cmp dl, 0x52
je 0x438c1f
mov byte [edi], dl
inc edi
jmp 0x4389f1
mov ebp, 3
jmp 0x4389f1
mov ebp, 2
jmp 0x4389f1
mov ebp, 1
jmp 0x4389f1
mov byte [esi + 0x5c], 0x77
jmp 0x4389d9
mov byte [esi + 0x5c], 0x72
jmp 0x4389c7