Function at 0x43855e
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 0x438821
test ebx, ebx
je 0x438821
mov dword [esp], pe_nt_image_headers32
call fcn.00441618
mov esi, eax
xor eax, eax
test esi, esi
je 0x43879e
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.00437a35
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.00441618
mov dword [esi + 0x54], eax
test eax, eax
je 0x438819
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 0x43891b
cmp dl, 0x77
je 0x438912
cmp dl, 0x61
je 0x438912
mov cl, dl
sub cl, 0x30
cmp cl, 9
ja 0x4388dd
movsx ecx, dl
sub ecx, 0x30
mov dword [esp + 0x3c], ecx
inc ebx
test dl, dl
je 0x4386d6
lea edx, [esp + 0x90]
cmp edi, edx
jne 0x438690
movzx eax, byte [esi + 0x5c]
test al, al
je 0x438819
cmp al, 0x77
je 0x43887e
mov dword [esp], 0x4000
call fcn.00441618
mov dword [esi + 0x44], eax
mov dword [esi], eax
mov dword [esp + 0xc], 0x38
mov dword [esp + 8], 0x438543
mov dword [esp + 4], 0xfffffff1
mov dword [esp], esi
call fcn.0043d87f
test eax, eax
jne 0x438819
mov ebx, dword [esi + 0x44]
test ebx, ebx
je 0x438819
mov dword [esi + 0x10], 0x4000
call fcn.00441617
mov dword [eax], 0
mov ecx, dword [esp + 0xb8]
test ecx, ecx
js 0x438828
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 0x438819
cmp byte [esi + 0x5c], 0x77
je 0x4387a9
mov dword [esp], esi
xor edi, edi
call fcn.00437d0d
mov ecx, dword [esi + 0x40]
mov dword [esp], ecx
call fcn.00441313
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], 0x438549
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esi + 0x60], 0xa
mov dword [esi + 0x64], 0
jmp 0x438799
mov dword [esp], esi
call fcn.004382c3
xor eax, eax
jmp 0x43879e
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 0x438766
mov dword [esp + 0x1c], 0x38
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], 0x438543
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.00438ad8
mov dword [esp], 0x4000
mov edi, eax
call fcn.00441618
mov dword [esi + 0x48], eax
test edi, edi
mov dword [esi + 0xc], eax
jne 0x438819
test eax, eax
jmp 0x438728
cmp dl, 0x66
je 0x438908
cmp dl, 0x68
je 0x4388fe
cmp dl, 0x52
je 0x4388f4
mov byte [edi], dl
inc edi
jmp 0x4386c6
mov ebp, 3
jmp 0x4386c6
mov ebp, 2
jmp 0x4386c6
mov ebp, 1
jmp 0x4386c6
mov byte [esi + 0x5c], 0x77
jmp 0x4386ae
mov byte [esi + 0x5c], 0x72
jmp 0x43869c