Function at 0x462980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 1
nop dword [eax]
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
lea eax, [esp + 0x2c]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x462bad
mov edi, dword [esp + 0x28]
cmp edi, 0x3f4
ja case.default.0x4629df
mov eax, dword [esp + 0x24]
cmp eax, 3
ja case.default.0x4629df
jmp dword [eax*4 + 0x462bc8]
mov eax, dword [ebx + 0x120]
lea ecx, [ebx + 0x120]
cmp eax, dword [ecx + 4]
je 0x4629fa
mov dword [ecx + 4], eax
push edi
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x124]
call fcn.004633a0
push 0
call fcn.005ab969
add esp, 4
jmp 0x4629a0
push edi
lea eax, [esp + 0x30]
push eax
push dword [ebx + 0x124]
lea ecx, [ebx + 0x120]
call fcn.004633a0
push 0
call fcn.005ab969
add esp, 4
jmp 0x4629a0
lea eax, [esp + 0x2c]
add eax, edi
lea ecx, [esp + 0x2c]
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebx + 0x120]
push eax
push dword [ebx + 0x124]
call fcn.004633a0
mov eax, dword [ebx + 0x120]
mov esi, eax
mov edi, dword [ebx + 0x124]
mov dword [esp + 0xc], eax
sub edi, eax
jmp 0x462a7c
lea esi, [esp + 0x2c]
mov dword [esp + 0xc], esi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x462a9b
push 0
push 0
push 0x417
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
test esi, esi
je 0x462abd
push edi
call fcn.005ab960
mov ecx, dword [esp + 0x10]
add esp, 4
mov esi, eax
push edi
push ecx
push esi
call fcn.005c3580
add esp, 0xc
mov dword [esp + 0xc], esi
lea esi, [ebx + 0xb4]
push esi
call fcn.005adc82
add esp, 4
test eax, eax
jne 0x462bbf
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
je 0x462bb4
mov eax, dword [esi + 0x40]
inc eax
cmp dword [esi + 0x38], eax
ja 0x462af4
push ecx
lea ecx, [esi + 0x30]
call fcn.00462fd0
mov ecx, dword [esi + 0x38]
lea eax, [ecx - 1]
and dword [esi + 0x3c], eax
lea eax, [ecx - 1]
mov edx, dword [esi + 0x40]
add edx, dword [esi + 0x3c]
and eax, edx
mov dword [esp + 0x18], edx
lea ecx, [eax*4]
mov eax, dword [esi + 0x34]
mov dword [esp + 0x14], ecx
cmp dword [ecx + eax], 0
jne 0x462b38
push 0x14
call fcn.005ab82c
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esi + 0x34]
mov dword [edx + ecx], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x34]
dec ecx
and ecx, edx
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
inc dword [esi + 0x40]
lea esi, [ebx + 0xb4]
lea eax, [esi + 0x44]
push eax
call fcn.005ade5e
add esp, 4
push esi
call fcn.005adcb4
add esp, 4
push 0
call fcn.005ab969
mov eax, dword [ebx + 0x120]
add esp, 4
cmp eax, dword [ebx + 0x124]
je case.default.0x4629df
mov dword [ebx + 0x124], eax
push 0
call fcn.005ab969
add esp, 4
jmp 0x4629a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
push 6
mov dword [esi + 0x2c], eax
call fcn.005adc4d
push 5
call fcn.005adc4d
nop
je 0x462bf4
inc esi
add dh, ah
sub dword [esi], eax
pop ss
sub al, byte [esi]
cmp eax, 0xcc00462a
int3
mov al, byte [ecx]
nop
test al, al
je 0x462cb5
add dword [eax - 0x7bf03f7c], edx
mov bh, 0
add byte [eax], al
lea ebx, [ecx + 0x48]
push ebx
call fcn.005adc82
add esp, 4
test eax, eax
jne 0x462cc7
mov eax, dword [ebx + 0x2c]
cmp eax, 0x7fffffff
je 0x462cbc
mov edx, dword [ebx + 0x40]
lea esi, [ebx + 0x44]
test edx, edx
jne 0x462c41
nop word [eax + eax]
push ebx
push esi
call fcn.005adf0c
mov edx, dword [ebx + 0x40]
add esp, 8
test edx, edx
je 0x462c30
mov eax, dword [ebx + 0x38]
lea edi, [esp + 0x18]
mov esi, dword [ebx + 0x34]
dec eax
and eax, dword [ebx + 0x3c]
mov ecx, 0x100
mov esi, dword [esi + eax*4]
lea eax, [edx - 1]
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x40], eax
test eax, eax
jne 0x462c68
mov dword [ebx + 0x3c], eax
jmp 0x462c6b
inc dword [ebx + 0x3c]
push ebx
call fcn.005adcb4
add esp, 4
cmp dword [esp + 0x18], 0
je 0x462cb5
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x400
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x462cb5
cmp dword [esp + 0xc], 0
je 0x462cb5
mov ecx, dword [esp + 0x10]
jmp 0x462bf3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec eax
push 6
mov dword [ebx + 0x2c], eax
call fcn.005adc4d
push 5
call fcn.005adc4d
int3