Function at 0x433199
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x174
mov eax, 0x446801
call fcn.00443eac
mov eax, dword [ebp + 0xc]
sub esp, 0x58
mov esi, dword [ebp + 8]
mov ecx, esp
mov edi, 0x40f138
mov dword [ebp - 0x120], eax
push 0xdc
push 9
push 0x311
push edi
push 0x402d58
push 0x40e528
call fcn.00440fc8
xor ebx, ebx
lea ecx, [ebp - 0x180]
push ebx
call fcn.00441304
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4707e0]
cmp eax, dword [ecx + 4]
jg 0x4334b9
push 0x4707e4
lea ecx, [ebp - 0x140]
call fcn.00431bcf
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x138], 0x401090
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x134], ebx
mov byte [ebp - 4], 2
cmp ebx, 0xffffffff
je 0x4334f8
push 7
pop esi
push 2
push 0
push 0xfffffffffffffff9
mov dword [ebp - 0x18], 0x61442f3c
mov dword [ebp - 0x14], 0x3e6174
pop edi
jmp 0x4332bc
push 0
lea eax, [ebp - 0x11c]
push eax
push 7
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43349e
cmp dword [ebp - 0x11c], 7
jne 0x43349e
push 7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x4332e1
inc esi
dec edi
cmp edi, 0xffffffba
jl 0x43352a
push 2
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x433266
push 0x40f190
sub esp, 0x58
mov ecx, esp
push 0xff
push 0xd
push 0x330
jmp 0x43330a
push 2
push 0
neg esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x433319
push 0x40f190
sub esp, 0x58
mov ecx, esp
push 0xff
push 0xd
push 0x33d
push 0x40f138
push 0x40f1b0
jmp 0x433514
mov ecx, dword [ebp - 0x120]
call fcn.00419afe
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov esi, eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x433565
push esi
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ebx, eax
push 0x4026c0
lea eax, [ebx*2 + 2]
push eax
call fcn.004439ee
pop ecx
mov edi, eax
mov dword [ebp - 0x130], 0x4010f0
pop ecx
mov dword [ebp - 0x12c], edi
mov byte [ebp - 4], 4
test edi, edi
jne 0x43338c
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x354
jmp 0x433576
xor ecx, ecx
lea eax, [ebx*2 + 2]
push ecx
push ecx
push eax
push edi
push ebx
push esi
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
test ebx, ebx
jg 0x4333c9
push 0x40b758
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x358
push 0x40f138
jmp 0x43350f
push 0
lea eax, [ebp - 0x124]
mov byte [ebx + edi], 0
push eax
push ebx
push edi
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433483
cmp dword [ebp - 0x124], ebx
jne 0x433483
lea edi, [ebp - 0x18]
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4333fe
push 0
lea eax, [ebp - 0x124]
sub edi, ecx
push eax
push edi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x433468
cmp dword [ebp - 0x124], edi
jne 0x433468
lea ecx, [ebp - 0x130]
call fcn.004286c5
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x138]
call fcn.00428c04
lea ecx, [ebp - 0x140]
call fcn.00431a70
lea ecx, [ebp - 0x180]
call fcn.004413c9
call fcn.00443e5b
ret 8
push 0x40b780
sub esp, 0x58
mov ecx, esp
push 0xff
push 0xd
push 0x363
jmp 0x43330a
push 0x40b780
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x35e
jmp 0x4333bf
push 0x40f1c0
sub esp, 0x58
mov ecx, esp
push 0xff
push 0xd
push 0x338
jmp 0x43330a
push 0x4707e0
call fcn.00443985
cmp dword [0x4707e0], 0xffffffff
pop ecx
jne 0x433204
push ecx
mov ecx, 0x4707e4
call fcn.00436fca
push 0x447570
call fcn.00443df0
mov dword [esp], 0x4707e0
call fcn.00443932
pop ecx
jmp 0x433204
push 0x40b740
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x325
push edi
push 0x402d58
push 0x40e528
call fcn.00440fc8
lea eax, [ebp - 0x180]
push eax
call fcn.004423d6
push 0x40f1d8
push 0x8000ffff
sub esp, 0x58
mov ecx, esp
push 0xff
push 0xd
push 0x346
push 0x40f138
push 0x40f1b0
push 0x40e528
call fcn.00440fc8
lea eax, [ebp - 0x180]
push eax
call fcn.00441d48
sub esp, 0x58
mov ecx, esp
push 0xdc
push 9
push 0x34c
push 0x40f138
push 0x402d58
push 0x40e528
call fcn.00440fc8
lea ecx, [ebp - 0x180]
call fcn.00441d17
int3