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

Disassembly:
push 0xffffffffffffffff
push 0x43f5f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [0x443ee8]
push edi
mov edi, dword [ebp + 0x24]
lea ebx, [ebp + 0x20]
test edi, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], edi
je 0x4327f1
mov al, byte [edi - 1]
test al, al
je 0x4327f1
cmp al, 0xff
je 0x4327f1
push 1
mov ecx, ebx
call fcn.0043a890
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
push ecx
push eax
mov ecx, ebx
call fcn.00439fd0
mov eax, dword [ebx + 8]
cmp eax, esi
jae 0x4327fa
mov esi, eax
test esi, esi
jbe 0x43282c
mov ecx, dword [ebx + 4]
sub eax, esi
push eax
lea edx, [ecx + esi]
push edx
push ecx
call sub.MSVCRT.dll_memmove
mov edi, dword [ebx + 8]
add esp, 0xc
sub edi, esi
mov ecx, ebx
push 0
push edi
call fcn.0043a6a0
test al, al
je 0x43282c
push edi
mov ecx, ebx
call fcn.0043a600
mov eax, dword [ebp + 4]
mov ecx, 0x44ccc0
test al, 0x40
je 0x43283f
mov ecx, 0x452158
jmp 0x432848
test al, 0x20
je 0x432848
mov ecx, 0x44cf04
push ecx
mov ecx, dword [esp + 0x58]
push ecx
mov dword [ebp], 0
call sub.MSVCRT.dll_fopen
add esp, 8
mov dword [ebp], eax
test eax, eax
jne 0x432870
mov ecx, ebp
call fcn.00432340
jmp 0x432ca2
mov ecx, dword [ebp + 4]
xor ebx, ebx
test cl, 0x10
mov byte [esp + 0x54], 1
mov dword [esp + 0x10], ebx
mov dword [ebp + 0x18], 1
je 0x432b4c
push 2
push ebx
push eax
call sub.MSVCRT.dll_fseek
mov edx, dword [ebp]
push edx
call sub.MSVCRT.dll_ftell
mov dword [ebp + 0x10], eax
mov eax, dword [ebp]
push ebx
push ebx
push eax
call sub.MSVCRT.dll_fseek
mov eax, dword [ebp + 0x10]
mov edi, 0x400
add esp, 0x1c
cmp eax, edi
mov dword [esp + 0x14], edi
jge 0x4328cf
test eax, eax
mov dword [esp + 0x14], eax
je 0x432b92
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x18], eax
test edi, edi
je 0x432902
mov ecx, dword [ebp]
push ecx
push 1
push edi
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
cmp eax, 1
sete al
test al, al
mov byte [esp + 0x54], al
je 0x432b3a
mov ecx, dword [ebp + 4]
xor esi, esi
and ecx, 0xfffffffa
mov dword [ebp + 4], ecx
mov eax, dword [0x44fb88]
test eax, eax
je 0x4329ce
mov eax, 0x44fb8c
mov edi, dword [eax]
test edi, edi
jle 0x432943
cmp ebx, dword [esp + 0x14]
jge 0x43293f
mov ecx, dword [esp + 0x18]
mov edx, dword [eax - 4]
mov cl, byte [ecx + ebx]
cmp cl, byte [edx + ebx]
jne 0x43293f
inc ebx
cmp ebx, edi
jl 0x432925
mov dword [esp + 0x10], ebx
cmp ebx, edi
je 0x432960
mov ecx, dword [eax + 0xc]
add eax, 0x10
inc esi
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x43291f
jmp 0x4329ca
shl esi, 4
mov eax, esi
mov esi, dword [ebp + 4]
mov edx, dword [eax + 0x44fb94]
or edx, esi
cmp ebx, 2
mov dword [ebp + 4], edx
jne 0x43297b
mov dword [ebp + 0x18], ebx
mov eax, dword [eax + 0x44fb90]
or ecx, 0xffffffff
mov dword [esp + 0x1c], eax
mov edi, eax
xor eax, eax
lea esi, [ebp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
mov ecx, esi
push ebx
call fcn.0043a6a0
test al, al
je 0x4329c6
mov edi, dword [esi + 4]
mov esi, dword [esp + 0x1c]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x38], ebx
add ebx, eax
mov byte [ebx], 0
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
cmp edi, ebx
jle 0x4329e4
mov ecx, dword [ebp]
xor esi, esi
push esi
push ebx
push ecx
call sub.MSVCRT.dll_fseek
add esp, 0xc
jmp 0x4329e6
xor esi, esi
cmp ebx, esi
jne 0x432ae0
mov dl, byte [esp + 0x54]
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x28], dl
call fcn.0043a890
push 1
push edi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x54], esi
call fcn.0043a6a0
test al, al
je 0x432a3c
mov esi, dword [esp + 0x18]
mov ecx, edi
mov edi, dword [esp + 0x28]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x28]
xor esi, esi
push ecx
cmp eax, esi
mov dword [esp + 0x20], esp
mov ecx, esp
jne 0x432a52
mov eax, 0x443ee4
lea edx, [esp + 0x38]
mov dword [ecx], eax
push edx
call fcn.004365a0
add esp, 8
mov ecx, dword [0x443ee8]
mov byte [esp + 0x4c], 1
push ecx
push esi
push eax
lea ecx, [ebp + 0x30]
call fcn.0043a400
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x432a9c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x432a93
cmp al, 0xff
je 0x432a93
dec al
mov byte [ecx], al
jmp 0x432a9c
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x38], esi
cmp ecx, esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x4c], 0xffffffff
je 0x432ad4
mov al, byte [ecx - 1]
test al, al
je 0x432aca
cmp al, 0xff
je 0x432aca
dec al
mov byte [ecx - 1], al
jmp 0x432ad4
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp dword [ebp + 0x38], esi
jne 0x432b3a
mov edx, dword [esp + 0x18]
cmp byte [edx], 0x3c
jne 0x432b3a
mov edi, str.UTF_8
or ecx, 0xffffffff
xor eax, eax
lea ebx, [ebp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [esp + 0x24], esi
call fcn.0043a6a0
test al, al
je 0x432b36
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, str.UTF_8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x432c50
test cl, 0x20
je 0x432b92
test cl, 0x40
je 0x432b6f
push 2
push 0
push eax
call sub.MSVCRT.dll_fseek
mov eax, dword [ebp]
push eax
call sub.MSVCRT.dll_ftell
add esp, 0x10
mov dword [ebp + 0x10], eax
mov eax, dword [0x44fb88]
xor esi, esi
test eax, eax
je 0x432b92
mov ecx, dword [ebp + 4]
mov eax, 0x44fb88
test dword [eax + 0xc], ecx
jne 0x432ba7
mov edx, dword [eax + 0x10]
add eax, 0x10
inc esi
test edx, edx
jne 0x432b82
test byte [ebp + 4], 0x40
je 0x432c65
mov edx, dword [ebp + 0x10]
mov dword [ebp + 0x14], edx
jmp 0x432c68
shl esi, 4
mov dword [esp + 0x14], esi
mov eax, dword [esi + 0x44fb8c]
cmp eax, 2
mov dword [esp + 0x10], eax
jne 0x432bc0
mov dword [ebp + 0x18], eax
mov edi, dword [esi + 0x44fb90]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], edi
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [ebp + 0x30]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [esp + 0x20], edi
call fcn.0043a6a0
test al, al
je 0x432c12
mov esi, dword [esp + 0x1c]
mov ecx, edi
mov edi, dword [ebx + 4]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [esp + 0x14]
mov dword [ebx + 8], eax
mov byte [eax + ecx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x432c2a
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x10]
jmp 0x432b92
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x44fb88]
push edx
push 1
push eax
push ecx
call sub.MSVCRT.dll_fwrite
mov ebx, dword [esp + 0x20]
add esp, 0x10
cmp eax, 1
sete byte [esp + 0x54]
mov al, byte [esp + 0x54]
test al, al
jne 0x432b92
mov ecx, ebp
call fcn.00432340
jmp 0x432ca2
mov dword [ebp + 0x14], ebx
test ebx, ebx
je 0x432c9e
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0
call fcn.00423070
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x452154
call fcn.00423070
mov eax, dword [esp + 0x34]
push eax
call fcn.00430b40
add esp, 0x18
mov al, byte [esp + 0x54]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 4