Function at 0x432190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c25b
mov eax, dword fs:[0]
push eax
mov eax, 0x10bc
call fcn.00517a50
mov eax, dword [0x56617c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1054]
push 0x44
push 0
push eax
mov dword [ebp - 0x105c], esi
call fcn.005001b0
add esp, 0xc
lea ecx, [ebp - 0x1054]
call fcn.0041ad80
cmp dword [ebp - 0x101c], 0
mov dword [ebp - method.CStringBase.virtual_0], vtable.CStringUTF8.0
je 0x432209
lea ecx, [ebp - 0x1020]
call fcn.0041a760
mov dword [ebp - 0x1018], 0xffffffff
mov dword [ebp - 0x1014], 0xffffffff
mov dword [ebp - 4], 0
cmp dword [ebx + 0x5c], 0
mov dword [ebp - 0x106c], esi
je 0x432254
mov edi, dword [ebx + 0x58]
lea ecx, [ebx + 0x58]
call dword [edi + 0x20]
mov ecx, dword [ebp - 0x105c]
push eax
push ecx
lea ecx, [ebx + 0x58]
call dword [edi + 0x14]
test eax, eax
je 0x432510
jmp 0x4324da
test byte [ebx + 0x10], 1
je 0x4324da
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
mov dword [ebp - 0x1064], ecx
call dword [eax + 0x40]
mov edx, eax
mov dword [ebp - 0x1084], 0
mov ecx, edx
mov dword [ebp - 0x1074], 0
mov dword [ebp - 0x1070], 0xf
mov byte [ebp - 0x1084], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4322a0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x1084]
call fcn.0041bc00
lea eax, [ebp - 0x1084]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebx + 0xac]
call fcn.00432a00
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1070]
mov dword [ebp - 0x1068], edi
cmp edx, 0x10
jb 0x432315
mov ecx, dword [ebp - 0x1084]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43230b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432562
push edx
push ecx
call fcn.004fe28b
add esp, 8
mov eax, dword [ebx + 0x10]
shr eax, 1
test al, 1
je 0x432385
mov eax, dword [0x58ea74]
mov ecx, eax
mov edx, dword [0x58ea70]
sub ecx, edx
mov dword [ebp - 0x105c], eax
cmp edi, ecx
jae 0x43233c
lea eax, [edx + edi]
jmp 0x432374
jbe 0x432379
mov eax, dword [0x58ea78]
sub eax, edx
cmp edi, eax
jbe 0x432357
push ecx
push edi
mov ecx, 0x58ea70
call fcn.00432cd0
jmp 0x432379
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [ebp - 0x105c]
call fcn.005001b0
mov eax, dword [ebp - 0x105c]
add esp, 0xc
add eax, esi
mov dword [0x58ea74], eax
mov esi, dword [0x58ea70]
mov dword [ebp - 0x105c], esi
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
call dword [eax + 0x78]
push eax
mov ecx, ebx
call fcn.00432910
test al, al
je 0x432508
push 0
lea eax, [ebx + 8]
push eax
push edi
push esi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x432508
mov eax, dword [ebx + 0x10]
shr eax, 1
test al, 1
je 0x4324da
push 0xfee
xor esi, esi
lea eax, [ebp - 0x1010]
push esi
push eax
xor edi, edi
call fcn.005001b0
xor ebx, ebx
add esp, 0xc
mov eax, 0xfee
cmp dword [ebp - 0x1068], ebx
jbe 0x4324da
shr ebx, 1
mov dword [ebp - 0x1064], ebx
test ebx, 0x100
jne 0x432419
mov ecx, dword [ebp - 0x105c]
mov cl, byte [esi + ecx]
inc esi
movzx ebx, cl
or ebx, 0xff00
mov dword [ebp - 0x1064], ebx
lea ecx, [esi + 1]
mov dword [ebp - 0x1060], ecx
mov ecx, dword [ebp - 0x105c]
mov dl, byte [ecx + esi]
mov esi, dword [ebp - 0x1060]
mov byte [ebp - 0x1055], dl
test bl, 1
je 0x432458
mov ecx, dword [ebp - 0x106c]
mov byte [edi + ecx], dl
inc edi
movzx ecx, ax
inc eax
and eax, 0xfff
mov byte [ebp + ecx - 0x1010], dl
jmp 0x4324ce
movzx ecx, byte [esi + ecx]
lea edx, [esi + 1]
mov dword [ebp - 0x1060], edx
mov esi, ecx
movzx ecx, byte [ebp - 0x1055]
mov edx, esi
and edx, 0xf0
and esi, 0xf
shl edx, 4
add esi, 3
or dx, cx
movzx ecx, si
xor esi, esi
movzx edx, dx
cmp si, cx
jae 0x4324c8
mov esi, edx
mov ebx, ecx
mov ecx, esi
inc esi
and ecx, 0xfff
mov dl, byte [ebp + ecx - 0x1010]
mov ecx, dword [ebp - 0x106c]
mov byte [edi + ecx], dl
inc edi
movzx ecx, ax
inc eax
and eax, 0xfff
mov byte [ebp + ecx - 0x1010], dl
sub ebx, 1
jne 0x432493
mov ebx, dword [ebp - 0x1064]
mov esi, dword [ebp - 0x1060]
cmp esi, dword [ebp - 0x1068]
jb 0x4323f0
lea ecx, [ebp - 0x1054]
call fcn.0041c2a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fe27d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 0x1064]
jmp 0x432513
lea ecx, [ebx + 0x14]
call fcn.0041a750
push eax
push str.Failed_to_read_the_file_n_s
lea eax, [ebp - 0x10c8]
push eax
lea eax, [ebp - 0x1054]
push eax
call fcn.004e78b0
add esp, 0x10
lea ecx, [ebp - 0x10c8]
call fcn.0041aac0
lea eax, [ebp - 0x1054]
push eax
lea ecx, [ebp - 0x10c8]
call fcn.0041ca00
push 0x563d10
lea eax, [ebp - 0x10c8]
push eax
call fcn.004ffbbe
call fcn.00501acf
int3