Function at 0x4538d0
Capabilities:
Delete file
Enumerate pe sections
Get file size

Disassembly:
push ebp
push esp
pop ebp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x453d95
push dword fs:[eax]
mov dword fs:[eax], esp
or edi, 0xffffffff
cmp dword [ebp + 8], 0
je 0x453d7f
xor edx, edx
push ebp
push 0x453d73
push dword fs:[edx]
mov dword fs:[edx], esp
mov esi, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
jne 0x453d11
sub edi, edi
mov eax, dword [esi + 0xc]
add eax, 0xf8
mov ebx, eax
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 6]
dec eax
or eax, eax
jl 0x453cfd
inc eax
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*4]
mov edx, dword [ebx + edx*8 + 0xc]
mov ecx, dword [esi + 0xc]
cmp edx, dword [ecx + 0x88]
jne 0x453cf3
sub eax, eax
mov dword [ebp - 4], eax
sub eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, dword [esi + 0x10]
call fcn.0045311c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x88]
call fcn.004533f0
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push 4
pop edx
pushal
popal
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x3c]
call fcn.00452b6c
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*4]
sub eax, dword [ebx + edx*8 + 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x4539d1
cmp byte [0x45dc2c], 0
je 0x4539d1
sub eax, eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x453a05
lea eax, [esi + 4]
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
mov edx, dword [ebx + eax*8 + 0x14]
mov eax, dword [ebp - 0x14]
lea eax, [eax + eax*4]
add edx, dword [ebx + eax*8 + 0x10]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
call fcn.00452cfc
test al, al
je 0x453cfd
mov eax, dword [esi + 8]
call fcn.00452a50
mov edi, eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 0xc]
add eax, 0xf8
mov ebx, eax
lea eax, [edi + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 0x70
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
add dword [edi + 0x20], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push edi
pop edi
push 4
pop edx
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x20]
call fcn.00452b6c
push eax
pop edi
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 4]
call fcn.00452b6c
sub edi, eax
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov edx, 4
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x24]
mov edx, dword [edx + 0x24]
call fcn.00452b6c
mov edi, dword [ebp - 0x14]
lea edi, [edi + edi*4]
mov dword [ebx + edi*8 + 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov edx, 4
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov dword [ebx + edi*8 + 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
pushal
popal
push 4
pop edx
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add dword [eax + 0x38], edx
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 6]
dec eax
test eax, eax
jl 0x453b3c
inc eax
mov dword [ebp - 0x2c], eax
xor ecx, ecx
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0xc]
mov edx, dword [ebp - 0x28]
cmp eax, dword [edx]
jbe 0x453b36
lea eax, [ecx + ecx*4]
mov edx, dword [ebp - 0x1c]
add dword [ebx + eax*8 + 0xc], edx
lea eax, [ecx + ecx*4]
mov edx, dword [ebp - 0x18]
add dword [ebx + eax*8 + 0x14], edx
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0x1c]
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*4]
cmp eax, dword [ebx + edx*8 + 0x14]
jbe 0x453b19
lea eax, [ecx + ecx*4]
mov edx, dword [ebp - 0x18]
add dword [ebx + eax*8 + 0x1c], edx
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0x18]
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*4]
cmp eax, dword [ebx + edx*8 + 0x14]
jbe 0x453b36
lea eax, [ecx + ecx*4]
mov edx, dword [ebp - 0x18]
add dword [ebx + eax*8 + 0x18], edx
inc ecx
dec dword [ebp - 0x2c]
jne 0x453ada
xor ecx, ecx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ecx*8 + 0x60]
mov edx, dword [ebp - 0x28]
cmp eax, dword [edx]
jbe 0x453b56
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add dword [eax + ecx*8 + 0x60], edx
inc ecx
cmp ecx, 0x10
jne 0x453b3e
xor eax, eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x94], 0
jbe 0x453bd4
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 6]
dec eax
or eax, eax
jl 0x453bd4
inc eax
mov dword [ebp - 0x2c], eax
xor ecx, ecx
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0xc]
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x90]
ja 0x453bce
mov eax, dword [esi + 0xc]
movzx eax, word [eax + 6]
dec eax
cmp ecx, eax
je 0x453baf
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0x34]
mov edx, dword [ebp - 0x24]
cmp eax, dword [edx + 0x90]
jbe 0x453bce
lea eax, [ecx + ecx*4]
mov eax, dword [ebx + eax*8 + 0x14]
add eax, dword [esi + 8]
mov edx, dword [ebp - 0x24]
add eax, dword [edx + 0x90]
lea edx, [ecx + ecx*4]
sub eax, dword [ebx + edx*8 + 0xc]
mov dword [ebp - 0x20], eax
jmp 0x453bd4
inc ecx
dec dword [ebp - 0x2c]
jne 0x453b7f
cmp dword [ebp - 0x20], 0
je 0x453c40
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x94]
push ecx
pop eax
mov edi, 0x1c
cdq
idiv edi
or edx, edx
jne 0x453bfd
push ecx
pop eax
push ecx
pop ecx
push 0x1c
pop ecx
cdq
idiv ecx
push eax
pop ecx
or ecx, ecx
jle 0x453c40
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x14]
lea edx, [edx + edx*4]
mov edx, dword [ebx + edx*8 + 0x14]
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x18]
cmp edx, eax
jae 0x453c37
test eax, eax
je 0x453c25
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
add dword [eax + 0x18], edx
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0
je 0x453c37
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add dword [eax + 0x14], edx
add dword [ebp - 0x20], 0x1c
dec dword [ebp - 0x2c]
jne 0x453c04
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov edx, 4
call fcn.00452b6c
mov ecx, eax
add ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
lea edi, [edi + edi*4]
mov edx, dword [ebx + edi*8 + 0x14]
add edx, dword [esi + 8]
mov eax, dword [ebp - 0x10]
call fcn.00402c14
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
lea edx, [ebp - 0x30]
mov eax, dword [esi + 0x10]
call fcn.00452f54
mov eax, dword [ebp - 0x30]
call fcn.0040525c
push eax
call sub.KERNEL32.DLL_DeleteFileA
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
push 4
pop edx
nop
nop
call fcn.00452b6c
add eax, dword [ebp - 0xc]
mov edx, dword [esi + 0xc]
mov edx, dword [edx + 0x3c]
call fcn.00452b6c
push eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
nop
nop
push 4
pop edx
call fcn.00452b6c
add eax, dword [ebp - 0xc]
pop edx
sub edx, eax
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0
jle 0x453cee
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
nop
push 4
nop
pop edx
call fcn.00452b6c
mov edx, dword [ebx + edi*8 + 0x14]
add edx, dword [esi + 8]
add eax, edx
add eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004076d8
or edi, 0xffffffff
jmp 0x453cfd
inc dword [ebp - 0x14]
dec eax
jne 0x453938
push 0
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_GetFileSize
push eax
pop edx
mov eax, dword [esi + 8]
call fcn.00453850
lea eax, [esi + 0x10]
call fcn.00453078
mov eax, dword [esi + 8]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [esi + 4]
push eax
mov eax, dword [0x45e484]
mov eax, dword [eax]
call eax
cmp dword [ebp + 0xc], 0
jne 0x453d50
push 2
push 0
push 0
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_SetFilePointer
cmp eax, 0xffffffff
je 0x453d50
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_SetEndOfFile
mov eax, dword [esi]
push eax
mov eax, dword [0x45e484]
mov eax, dword [eax]
call eax
mov edx, 0x14
mov eax, dword [ebp + 8]
call fcn.00402a80
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x453d7f
sub eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d9c
lea eax, [ebp - 0x30]
call fcn.00404d9c
ret