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

Disassembly:
sub esp, 0x4c
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x5c]
xor ebx, ebx
push edi
push esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov byte [esp + 0x34], bl
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov dword [esp + 0x41], eax
mov dword [esp + 0x45], eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
xor ebp, ebp
call fcn.00436340
mov edi, eax
mov dword [esp + 0x30], ebx
mov eax, dword [edi + 0x78]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], edi
call fcn.0043a730
movzx eax, byte [esi + 9]
add eax, 0xffffffff
add esp, 0xc
cmp eax, 6
ja case.0x43d115.0
jmp dword [eax*4 + 0x43d5d0]
push edi
mov dword [esp + 0x18], 0x40
call fcn.00436210
add esp, 4
cmp eax, ebx
je 0x43d145
cmp byte [eax + 9], 2
jne 0x43d145
cmp eax, esi
je 0x43d145
mov eax, dword [eax + 0x2c]
add ebp, 1
cmp eax, ebx
jne 0x43d131
push ebp
push str.BuildFVLIBRELEASE_FWLIBFV_
lea edx, [esp + 0x18]
push str._sFV__d.Fv
push edx
call fcn.0043a730
add esp, 0x10
jmp case.0x43d217.26
mov ecx, dword [esi]
push ebx
push 0x25
lea eax, [esp + 0x38]
push eax
push ecx
mov dword [esp + 0x24], 0x18
call fcn.00436120
lea edx, [esp + 0x40]
push edx
mov eax, edx
push eax
push str.BuildFVLIBRELEASE_FWLIBFV_
lea ecx, [esp + 0x2c]
push str._sFfs_s_s.ffs
push ecx
call fcn.0043a730
add esp, 0x24
jmp case.0x43d217.26
mov edi, dword [esi]
mov eax, esi
mov dword [esp + 0x14], 4
call fcn.0043a630
mov eax, dword [eax]
push ebx
push 0x25
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00436120
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
push str.BuildFVLIBRELEASE_FWLIBFV_
lea eax, [esp + 0x2c]
push str._sFfs_s_sSEC
push eax
call fcn.0043a730
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0043ad40
add esp, 0x2c
cmp byte [edi + 3], 0x17
jne 0x43d207
mov edx, dword [esp + 0x10]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43d1f8
sub eax, ebp
mov byte [eax + edx - 1], bl
movzx eax, byte [edi + 3]
add eax, 0xfffffff0
cmp eax, 0xc
ja case.0x43d217.26
jmp dword [eax*4 + 0x43d5ec]
lea edx, [esp + 0x10]
push 0x4b0284
push edx
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea eax, [esp + 0x10]
push str.com16
push eax
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea ecx, [esp + 0x10]
push str.guid
push ecx
mov dword [esp + 0x1c], 0x14
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea edx, [esp + 0x10]
push str.pe32
push edx
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea eax, [esp + 0x10]
push 0x4b0268
push eax
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea ecx, [esp + 0x10]
push 0x4b0264
push ecx
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea edx, [esp + 0x10]
push str.fv.sec
push edx
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea eax, [esp + 0x10]
push 0x4b0258
push eax
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea edx, [esp + 0x10]
push 0x4b0254
push edx
mov dword [esp + 0x1c], 6
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea eax, [esp + 0x10]
push 0x4b0250
push eax
mov dword [esp + 0x1c], 8
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
lea ecx, [esp + 0x10]
push 0x4b0258
push ecx
call fcn.0043a730
add esp, 8
jmp case.0x43d217.26
mov eax, esi
mov dword [esp + 0x14], 9
call fcn.0043a630
mov eax, dword [eax]
push ebx
push 0x25
lea edx, [esp + 0x38]
push edx
push eax
call fcn.00436120
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
push str.BuildFVLIBRELEASE_FWLIBFV_
lea eax, [esp + 0x2c]
push str._sFfs_s_sSEC
push eax
call fcn.0043a730
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.0043ad40
push 0x4b024c
lea edx, [esp + 0x40]
push edx
jmp 0x43d3d5
mov eax, esi
mov dword [esp + 0x14], 0x18
call fcn.0043a630
mov edx, dword [eax]
push ebx
push 0x25
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00436120
lea eax, [esp + 0x40]
push eax
mov ecx, eax
push ecx
push str.BuildFVLIBRELEASE_FWLIBFV_
lea edx, [esp + 0x2c]
push str._sFfs_s_sSEC
push edx
call fcn.0043a730
lea eax, [esp + 0x34]
push esi
push eax
call fcn.0043ad40
push str.guided
lea ecx, [esp + 0x40]
push ecx
call fcn.0043a730
add esp, 0x34
mov edx, dword [esp + 0x10]
push 0x4ae9b8
push edx
call fcn.0047a909
mov ebp, eax
add esp, 8
cmp ebp, ebx
je case.0x43d115.0
push 2
push ebx
push ebp
call fcn.0047985d
push ebp
call fcn.00479ab3
push ebx
push ebx
push ebp
mov edi, eax
call fcn.0047985d
lea eax, [edi + 1]
push eax
call fcn.00476994
mov ebx, eax
add esp, 0x20
test ebx, ebx
mov dword [esp + 0x1c], ebx
push ebp
jne 0x43d440
call fcn.00478828
mov eax, dword [esp + 0x14]
push eax
call fcn.00478435
add esp, 8
jmp case.0x43d115.0
push 1
push edi
push ebx
call fcn.00479dbd
add esp, 0x10
cmp eax, 1
jne 0x43d59f
mov ecx, dword [esi]
push ecx
call fcn.00478435
lea eax, [edi + 1]
push eax
mov dword [esi], 0
call fcn.00476994
add esp, 8
test eax, eax
mov dword [esi], eax
jne 0x43d48d
push ebp
call fcn.00478828
mov edx, dword [esp + 0x14]
push edx
call fcn.00478435
add esp, 8
jmp case.0x43d115.0
push edi
push ebx
push eax
call fcn.004765e0
mov ecx, dword [esp + 0x20]
mov eax, dword [esi]
lea edx, [eax + ecx]
mov cl, byte [esi + 9]
add esp, 0xc
cmp cl, 4
mov dword [esi + 4], edx
mov byte [esi + 8], 2
jne 0x43d586
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x78]
lea eax, [esp + 0x30]
push eax
push str.BuildFVLIBRELEASE_FWLIBFV_
push edx
lea eax, [esp + 0x2c]
push str._s_sFfs_s_
push eax
call fcn.0043a730
mov ecx, dword [esp + 0x34]
push ecx
push esi
lea esi, [esp + 0x34]
call fcn.0043ae60
mov edx, dword [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push str._s.txt
push eax
call fcn.0043a730
mov ecx, dword [esp + 0x4c]
add esp, 0x28
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43d554
mov eax, 1
call fcn.0043add0
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43d532
push 0
lea ecx, [esp + 0x30]
push ecx
sub eax, esi
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x1c]
push ebp
call fcn.00478828
mov edx, dword [esp + 0x14]
push edx
call fcn.00478435
push ebx
call fcn.00478435
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00475cba
add esp, 0x4c
ret
cmp cl, 5
jne 0x43d558
push eax
call fcn.00445140
add esp, 4
cmp eax, 8
jne 0x43d558
add dword [esi + 4], 4
jmp 0x43d558
push ebp
call fcn.00478828
mov eax, dword [esp + 0x14]
push eax
call fcn.00478435
push ebx
call fcn.00478435
add esp, 0xc
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00475cba
add esp, 0x4c
ret