Function at 0x434b2c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp - 0x118]
push 9
push eax
mov dword [ebp - 8], edi
push dword [ebp + 0xc]
call esi
cmp byte [ebp - 0x118], 0x41
jne 0x434fd5
cmp byte [ebp - 0x117], 0x48
jne 0x434fd5
cmp byte [ebp - 0x116], 0x53
je 0x434b86
cmp byte [ebp - 0x116], 0x30
jne 0x434fd5
cmp byte [ebp - 0x116], 0x30
jne 0x434b96
mov dword [ebp - 8], 1
mov ebx, dword [ebp + 8]
push dword [ebx + 0x3c]
push dword [0x4691ec]
call fcn.0040a362
mov eax, dword [ebp - 0x115]
test ah, 0x10
mov word [ebx + 0x36], ax
je 0x434bbe
mov word [ebx + 0x30], 0x1000
jmp 0x434bc2
mov word [ebx + 0x30], di
and eax, 0xfff
mov word [ebx + 0x36], ax
add eax, 5
mov word [ebx + 0x38], ax
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 2
push eax
push dword [0x4691ec]
call fcn.0040a287
mov dword [ebx + 0x3c], eax
mov ax, word [ebx + 0x30]
cmp ax, 0x1000
jne 0x434bfa
cmp word [ebx + 0x32], di
jne 0x434c05
mov cx, word [ebp - 0x113]
mov word [ebx + 0x32], cx
mov cx, word [ebp - 0x111]
cmp ax, di
mov word [ebx + 0x34], cx
jne 0x434ca0
cmp dword [ebp - 8], edi
mov word [ebx + 0x14], 2
mov dword [ebx + 0x18], edi
mov word [ebx + 0x20], di
mov word [ebx + 0x22], di
mov dword [ebx + 0x1c], edi
je 0x434c4e
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x118]
push 4
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x118]
mov dword [ebx + 0x1c], eax
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x118]
push 8
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp - 0x118]
mov cx, word [ebp - 0x114]
mov dword [ebx + 0x24], eax
mov word [ebx + 0x20], cx
mov cx, word [ebp - 0x112]
shr eax, 6
inc eax
mov word [ebx + 0x22], cx
push eax
push 0x7ffe
call fcn.0040a287
lea ecx, [ebp - 4]
push edi
push ecx
mov dword [ebx + 0x28], eax
push dword [ebx + 0x24]
push eax
push dword [ebp + 0xc]
call esi
cmp word [ebx + 0x36], di
mov dword [ebp - 0xc], edi
jle 0x434fc1
jmp 0x434cb1
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x118]
push 0xc
push eax
push dword [ebp + 0xc]
call esi
cmp byte [ebp - 0x118], 0x52
jne 0x434fd5
cmp byte [ebp - 0x117], 0x48
jne 0x434fd5
movsx edi, word [ebp - 0xc]
mov eax, dword [ebp - 0x116]
mov ecx, dword [ebp - 0x114]
lea edi, [edi + edi*2]
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x3c]
push 0xffffffffffffffff
shl edi, 2
mov dword [ebp - 8], edi
mov dword [edi + eax], ecx
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 0x110]
mov dword [edi + eax + 4], ecx
call fcn.00409076
mov ecx, dword [ebx + 0x3c]
cmp word [ebp + 8], 0
mov dword [edi + ecx + 8], eax
jle 0x434fb0
movsx eax, word [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 1
push eax
push dword [ebp + 0xc]
call esi
movsx eax, byte [ebp - 0x118]
dec eax
je 0x434f19
dec eax
je 0x434e6a
dec eax
jne 0x434fa7
push 0x4c
push dword [0x4691ec]
call fcn.0040a287
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 0x20
push eax
mov word [edi], 3
push dword [ebp + 0xc]
call esi
mov ax, word [ebp - 0x118]
push 0
mov word [edi + 8], ax
mov ax, word [ebp - 0x116]
mov word [edi + 0xa], ax
mov ax, word [ebp - 0x114]
mov word [edi + 0xc], ax
mov ax, word [ebp - 0x112]
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x110]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x108]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x104]
mov dword [edi + 0x14], eax
movsx eax, word [ebp - 0x100]
mov dword [edi + 0x3c], eax
movsx eax, word [ebp - 0xfe]
mov dword [edi + 0x40], eax
movsx eax, word [ebp - 0xfc]
mov dword [edi + 0x44], eax
lea eax, [ebp - 4]
push eax
movsx eax, word [ebp - 0xfa]
push eax
lea eax, [edi + 0x1c]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 2
push eax
push dword [ebp + 0xc]
call esi
movsx eax, word [ebp - 0x118]
mov dword [ebp + 8], eax
push 0x40
cdq
pop ecx
idiv ecx
inc eax
push eax
push 0x7ffe
call fcn.0040a287
lea ecx, [ebp - 4]
push 0
push ecx
mov dword [edi + 0x48], eax
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
push edi
push dword [ecx + eax + 8]
call fcn.00408f9b
push edi
push ebx
call fcn.00435632
pop ecx
pop ecx
jmp 0x434fa7
push 0x1c
push dword [0x4691ec]
call fcn.0040a287
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 0x10
push eax
mov word [edi], 2
push dword [ebp + 0xc]
call esi
mov ax, word [ebp - 0x118]
mov word [edi + 0xc], ax
mov ax, word [ebp - 0x116]
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x114]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x110]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x10c]
mov dword [edi + 0x10], eax
shr eax, 6
inc eax
push eax
push 0x7ffe
call fcn.0040a287
lea ecx, [ebp - 4]
push 0
push ecx
mov dword [edi + 0x14], eax
push dword [edi + 0x10]
push eax
push dword [ebp + 0xc]
call esi
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 2
push eax
push dword [ebp + 0xc]
call esi
movsx eax, word [ebp - 0x118]
mov dword [ebp + 8], eax
push 0x40
cdq
pop ecx
idiv ecx
inc eax
push eax
push 0x7ffe
call fcn.0040a287
mov dword [edi + 0x18], eax
jmp 0x434f88
push 0x18
push dword [0x4691ec]
call fcn.0040a287
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
lea eax, [ebp - 0x118]
push 0xe
push eax
mov word [edi], 1
push dword [ebp + 0xc]
call esi
mov ax, word [ebp - 0x118]
push 0x40
mov word [edi + 0xc], ax
mov ax, word [ebp - 0x116]
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x114]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x110]
mov dword [edi + 8], eax
pop ecx
movsx eax, word [ebp - 0x10c]
mov dword [ebp + 8], eax
cdq
idiv ecx
inc eax
push eax
push 0x7ffe
call fcn.0040a287
mov dword [edi + 0x14], eax
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 8]
push eax
push dword [ebp + 0xc]
call esi
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
push edi
push dword [ecx + eax + 8]
call fcn.00408f9b
dec dword [ebp - 0x10]
jne 0x434d2d
inc dword [ebp - 0xc]
mov ax, word [ebp - 0xc]
cmp ax, word [ebx + 0x36]
jl 0x434caf
cmp word [ebx + 0x30], 0x1000
jne 0x434fd0
push ebx
call fcn.00434599
pop ecx
push 1
pop eax
jmp 0x434fd7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret