Function at 0x53c460
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [eax + 0x3c]
mov ecx, dword [esi + eax + 0x50]
push edi
mov edi, dword [0x100cf1b4]
add esi, eax
mov edx, dword [esi + 0x34]
push 0x40
push 0x2000
lea eax, [esi + 0x34]
push ecx
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 8]
push edx
mov ebx, esi
push eax
mov dword [esp + 0x34], ebx
call edi
test eax, eax
push 0x40
je 0x53c4b3
mov ecx, dword [esi + 0x50]
mov edx, dword [ebp + 8]
push 0x1000
push ecx
push eax
push edx
jmp 0x53c4c2
mov eax, dword [esi + 0x50]
mov ecx, dword [ebp + 8]
push 0x101000
push eax
push 0
push ecx
call edi
push 4
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x50]
push 0x1000
push eax
push 0
mov dword [esp + 0x24], eax
call dword [0x100cf160]
mov edx, dword [esp + 0x14]
mov edi, eax
push edx
push edi
mov dword [esp + 0x34], edi
call dword [0x100ef7e8]
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [0x100ef7ec]
cmp word [ebx + 6], 0
movzx edx, word [esi + 0x14]
lea esi, [esi + edx + 0x18]
mov dword [esp + 0x28], 0
jbe 0x53c5d7
lea edi, [esi + 0x10]
mov edi, edi
mov ecx, dword [ebx + 0x38]
mov eax, dword [edi - 8]
mov edx, dword [ebx + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [edi]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 4]
mov dword [esp + 0x18], edx
add eax, ecx
xor edx, edx
div dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov esi, ecx
shr esi, 9
shl esi, 9
imul ebx, eax
test edx, edx
je 0x53c559
add ebx, dword [esp + 0x18]
mov eax, dword [edi]
sub ecx, esi
add ecx, eax
mov eax, ecx
xor edx, edx
div dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
imul ecx, eax
test edx, edx
je 0x53c576
add ecx, dword [esp + 0x1c]
add ecx, esi
cmp ecx, ebx
jb 0x53c57e
mov ecx, ebx
mov ebx, dword [edi - 4]
mov eax, dword [esp + 0x24]
add ebx, dword [esp + 0x2c]
push eax
sub ecx, esi
push ebx
mov dword [esp + 0x24], ecx
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
jae 0x53c5a5
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push eax
add esi, ecx
push esi
push ebx
call dword [0x100ef7ec]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
movzx ecx, word [edx + 6]
add eax, 1
add edi, 0x28
cmp eax, ecx
mov dword [esp + 0x28], eax
mov ebx, edx
jl 0x53c520
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa0]
sub esi, dword [edx]
mov eax, dword [ebx + 0xa4]
add ecx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
je 0x53c64b
test eax, eax
mov ebx, ecx
jle 0x53c64b
nop
mov eax, dword [ebx + 4]
sub eax, 8
shr eax, 1
test eax, eax
lea edx, [ebx + 8]
jle 0x53c641
mov dword [esp + 0x2c], eax
movzx eax, word [edx]
movzx eax, ax
mov ecx, eax
shr ecx, 0xc
cmp ecx, 3
je 0x53c628
cmp ecx, 0xa
jne 0x53c633
and eax, 0xfff
add eax, dword [ebx]
add eax, edi
add dword [eax], esi
add edx, 2
sub dword [esp + 0x2c], 1
jne 0x53c613
mov ecx, dword [esp + 0x30]
mov ebx, edx
sub edx, ecx
cmp edx, dword [esp + 0x28]
jl 0x53c600
call dword [0x100cf22c]
mov esi, dword [ebp + 8]
cmp eax, esi
mov eax, dword [esp + 0x10]
jne 0x53c66f
mov ebx, dword [esp + 0x14]
push ebx
push edi
push eax
call dword [0x100ef7ec]
mov dword [esp + 0x34], ebx
jmp 0x53c686
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
push edi
push eax
push esi
call dword [0x100cf1ac]
mov ebx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
push ebx
push esi
call dword [0x100cf164]
push 0x8000
push 0
push edi
call dword [0x100cf184]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret