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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x47d036
push eax
mov eax, 0x8044
mov dword fs:[0], esp
call fcn.004468d0
push ebx
push ebp
or ebp, 0xffffffff
push esi
push edi
mov dword [esp + 0x14], ebp
xor ebx, ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x805c], ebx
mov eax, dword [ecx]
push 0x38
push str.1.2.3
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x806c], 1
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.0046d750
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x46d14d
lea ecx, [esp + 0x10]
mov byte [esp + 0x805c], bl
call fcn.004055b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x805c], ebp
call fcn.004055b0
jmp 0x46d40a
mov edx, dword [esp + 0x8064]
mov eax, dword [edx + 8]
cmp eax, ebx
jne 0x46d160
mov eax, 0x47e608
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push ebx
push SysReAllocStringLen
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x46d191
lea ecx, [esp + 0x14]
call fcn.004055b0
mov eax, esi
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x46d1cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x46d1b6
cmp esi, ebx
je 0x46d1b6
push eax
call esi
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x46d1c5
cmp esi, ebx
je 0x46d1c5
push eax
call esi
mov eax, edi
jmp 0x46d40c
mov eax, dword [esp + 0x8068]
mov eax, dword [eax + 8]
cmp eax, ebx
jne 0x46d1df
mov eax, 0x47e608
push ebx
push 0x80
push 2
push ebx
push 3
push 0x40000000
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x46d214
cmp eax, 0xffffffff
je 0x46d20e
cmp ebp, ebx
je 0x46d20e
push eax
call ebp
mov eax, esi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x46d253
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46d239
cmp ebp, ebx
je 0x46d239
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46d40a
cmp ebp, ebx
je 0x46d40a
jmp 0x46d407
mov ebx, 0x4000
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x5c]
push ebx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x46d319
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x46d32f
call esi
cmp eax, 0x103
je 0x46d32f
xor edi, edi
lea ecx, [esp + 0x54]
mov dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
lea edx, [esp + 0x4054]
push edi
push eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edx
call fcn.0046dd30
add esp, 8
cmp eax, 0xfffffffe
je 0x46d365
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov esi, ebx
push 0
sub esi, ecx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x405c]
push esi
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46d3cd
cmp dword [esp + 0x18], esi
jne 0x46d3cd
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x46d2a0
cmp edi, 4
je 0x46d394
jmp 0x46d258
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x46d296
mov edi, 4
jmp 0x46d298
call esi
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46d34b
test ebp, ebp
je 0x46d34b
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46d40a
test ebp, ebp
je 0x46d40a
jmp 0x46d407
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46d37d
test ebp, ebp
je 0x46d37d
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46d38d
test ebp, ebp
je 0x46d38d
push eax
call ebp
mov eax, 0xfffffffe
jmp 0x46d40c
lea ecx, [esp + 0x1c]
push ecx
call fcn.0046e6a0
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, 0xffffffff
je 0x46d3b9
test ebp, ebp
je 0x46d3b9
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46d3c9
test ebp, ebp
je 0x46d3c9
push eax
call ebp
xor eax, eax
jmp 0x46d40c
lea edx, [esp + 0x1c]
push edx
call fcn.0046e6a0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x46d3fa
test ebp, ebp
je 0x46d3fa
push eax
call ebp
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x46d40a
test ebp, ebp
je 0x46d40a
push eax
call ebp
mov eax, esi
mov ecx, dword [esp + 0x8054]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8050
ret 8