Function at 0x404db5
Capabilities:
Clear file content

Disassembly:
push 0x2c
mov eax, 0x462893
call fcn.00450d5a
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 4], esi
push 2
mov ecx, ebx
call fcn.004048d8
test eax, eax
jge 0x404de0
mov eax, 0x80400004
call fcn.0040426a
lea edi, [ebx + 4]
push esi
push esi
push edi
call fcn.004045b7
cmp eax, esi
jl 0x404e00
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x404e00
call fcn.00405c7f
push 0x46b238
push 0x10
mov eax, ebx
call fcn.004059f7
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x404ddb
push 2
push ebx
call fcn.004059d1
push edi
lea edi, [ebp - 0x38]
call fcn.004045ee
push esi
push ebx
call fcn.004059d1
lea eax, [ebx + 8]
call fcn.00403561
mov dword [ebp - 0x20], eax
push eax
push ebx
call fcn.004059d1
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x14]
cmp esi, dword [ebp - 0x20]
jae 0x405003
lea edi, [ebx + 8]
call fcn.004034f5
push dword [eax]
push 0x10
mov eax, ebx
call fcn.004059f7
mov dword [ebp - 0x1c], eax
lea edi, [ebx + 8]
call fcn.004034f5
mov eax, dword [eax]
add eax, 0x10
call fcn.00403561
mov dword [ebp - 0x24], eax
push eax
push ebx
call fcn.004059d1
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jae 0x404ffb
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
push dword [eax]
push ebx
call fcn.00405a0d
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
add eax, 4
push eax
push 0x10
mov eax, ebx
call fcn.004059f7
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
push dword [eax + 0x14]
push ebx
call fcn.004059d1
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
push dword [eax + 0x18]
push ebx
call fcn.004059d1
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
add eax, 0x1c
push dword [eax]
push ebx
call fcn.00405a0d
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
add eax, 0x20
push dword [eax]
push ebx
call fcn.00405a0d
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
push dword [eax + 0x24]
push ebx
call fcn.004059d1
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov eax, dword [eax]
cmp dword [eax + 0x24], 0
je 0x404ff3
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 8]
call fcn.004034f5
mov edi, dword [eax]
add edi, 0x10
mov esi, dword [ebp - 0x18]
call fcn.004034f5
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
push dword [ecx + 0x28]
mov eax, dword [eax]
push dword [eax + 0x24]
mov eax, ebx
call fcn.004059f7
inc dword [ebp - 0x18]
jmp 0x404e84
inc dword [ebp - 0x14]
jmp 0x404e42
lea edi, [ebx + 4]
push edi
lea esi, [ebp - 0x2c]
call fcn.00404630
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call fcn.004045b7
push dword [ebp - 0x2c]
push ebx
call fcn.004059d1
or dword [ebp - 4], 0xffffffff
jmp 0x40504e
mov ecx, ebx
call fcn.00404a27
mov eax, dword [ebp - 0x1c]
call fcn.00450dff
ret 4