Function at 0x457cd0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 0xa
call fcn.004985f0
add esp, 4
mov ebx, eax
mov ecx, ebp
mov dword [esp + 0x10], ebx
push 0
push 9
push ebx
call fcn.0044c480
test eax, eax
jne 0x457d0c
push ebx
call fcn.00498600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [ebp + 0x4ba4]
test eax, eax
je 0x457e3c
mov eax, dword [ebp + 0x4ba0]
test eax, eax
je 0x457e3c
mov edi, dword [ebp + 0x324]
mov eax, dword [ebp + 0x4890]
mov dword [esp + 0x14], edi
cmp eax, dword [edi + 0x14]
jge 0x457d49
test eax, eax
jl 0x457d49
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx + eax*4]
jmp 0x457d4b
xor eax, eax
test eax, eax
je 0x457e3c
mov al, byte [eax]
shr eax, 2
and eax, 7
cmp eax, 1
jg 0x457dc3
mov ebx, dword [ebp + 0x4bbc]
mov edx, dword [ebp + 0x4bb4]
mov eax, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x10]
add eax, edx
cmp ecx, eax
jge 0x457d7d
mov eax, ecx
cmp ebx, eax
jge 0x457e38
mov eax, dword [ebp + 0x4bb8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x4bb0]
sub ecx, eax
cmp edx, ecx
jge 0x457d9c
mov ecx, edx
mov edx, dword [ebp + 0x4ba0]
mov esi, dword [edx + ebx*4]
mov edx, dword [ebp + 0x4ba4]
add esi, eax
mov edi, dword [edx + ebx*4]
add edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc ebx
rep movsb byte es:[edi], byte [esi]
jmp 0x457d66
cmp eax, 2
jne 0x457e3c
mov esi, dword [ebp + 0x4bbc]
mov ecx, dword [ebp + 0x4bb4]
mov edx, dword [ebp + 0x4bbc]
lea eax, [ecx + edx]
mov ecx, dword [ebp + 0x10]
cmp ecx, eax
jge 0x457de6
mov eax, ecx
cmp esi, eax
jge 0x457e3c
mov edx, dword [ebp + 0x4bb8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x4bb0]
sub eax, edx
cmp ecx, eax
jge 0x457e01
mov eax, ecx
mov ecx, eax
xor eax, eax
mov al, byte [edi + 9]
mov edi, dword [ebp + 0x4ba4]
mov bl, al
mov edi, dword [edi + esi*4]
mov bh, bl
mov eax, ebx
add edi, edx
mov edx, ecx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x10]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
inc esi
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
jmp 0x457dce
mov ebx, dword [esp + 0x10]
mov al, byte [ebx + 8]
xor ecx, ecx
and eax, 0x40
xor edx, edx
mov dword [ebp + 0x4880], eax
mov cx, word [ebx + 4]
mov dword [ebp + 0x4bb0], ecx
mov dx, word [ebx + 6]
xor eax, eax
mov dword [ebp + 0x4bb4], edx
mov ax, word [ebx]
mov edx, dword [ebp + 0x320]
xor ecx, ecx
mov dword [ebp + 0x4bb8], eax
mov cx, word [ebx + 2]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x4bbc], ecx
mov ecx, dword [ebp + 0x4890]
inc edx
inc ecx
mov dword [ebp + 0x320], edx
xor edx, edx
mov dword [ebp + 0x4890], ecx
mov dx, word [ebx + 4]
cmp edx, eax
jle 0x457ed5
mov ecx, ebp
call fcn.004573b0
xor eax, eax
mov ax, word [ebx + 4]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x374], eax
mov eax, dword [ebp + 0x487c]
push eax
call fcn.00498600
mov ecx, dword [ebp + 0xc]
add esp, 4
push ecx
call fcn.004985f0
add esp, 4
mov dword [ebp + 0x487c], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dx, word [ebx + 6]
cmp edx, eax
jle 0x457ef2
mov ecx, ebp
call fcn.004573b0
xor eax, eax
mov ax, word [ebx + 6]
mov dword [ebp + 0x10], eax
mov ecx, 3
mov edi, 0x4c1694
lea esi, [ebp + 0x486f]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x457f30
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 4]
mov dword [ebp + 0xc], eax
mov cx, word [ebx + 6]
mov edx, eax
xor eax, eax
mov dword [ebp + 0x10], ecx
mov dword [ebp + 0x374], edx
mov dword [ebp + 0x4bb8], eax
mov dword [ebp + 0x4bbc], eax
mov eax, dword [ebp + 0x4878]
mov ebx, dword [ebp + 0x324]
test eax, eax
je 0x457ff1
push 6
call fcn.004985f0
add esp, 4
test eax, eax
je 0x457f6c
lea ecx, [ebp + 0x4872]
mov edx, eax
mov dword [esp + 0x14], eax
mov esi, dword [ecx]
mov dword [edx], esi
mov cx, word [ecx + 4]
mov word [edx + 4], cx
jmp 0x457f74
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x457ff1
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
lea edx, [eax + 1]
cmp ecx, edx
jne 0x457fdd
mov ecx, dword [ebx + 0x20]
add ecx, eax
lea edx, [ecx*4 + 4]
push edx
call fcn.004985f0
mov ecx, dword [ebx + 0x18]
mov esi, dword [ebx + 0x10]
mov edi, eax
add esp, 4
lea ecx, [ecx*4 + 4]
mov dword [esp + 0x18], eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x10]
push eax
call fcn.00498600
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
mov ecx, dword [esp + 0x1c]
add esp, 4
add eax, edx
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edx
mov eax, dword [ebx + 0x14]
inc eax
mov dword [ebx + 0x14], eax
mov esi, dword [esp + 0x10]
mov cl, byte [esi + 8]
test cl, 0x80
je 0x458030
and ecx, 7
mov eax, 2
shl eax, cl
mov dword [ebp + 0x1c], eax
mov cl, byte [esi + 8]
and ecx, 7
inc ecx
mov dword [ebp + 0x14], ecx
mov ecx, ebp
call fcn.004580f0
test eax, eax
jne 0x45806a
push 7
mov ecx, ebp
call fcn.0044bb20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov cl, byte [ebx + 8]
mov edx, 2
and ecx, 7
lea esi, [ebp + 0x48a0]
shl edx, cl
lea edi, [ebp + 0x20]
mov dword [ebp + 0x1c], edx
mov al, byte [ebx + 8]
and eax, 7
inc eax
mov dword [ebp + 0x14], eax
mov eax, edx
lea ecx, [eax + eax*2]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4580dd
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x30]
lea ecx, [eax + 1]
cmp edx, ecx
jne 0x4580cd
mov edx, dword [ebx + 0x3c]
add edx, eax
lea eax, [edx*4 + 4]
push eax
call fcn.004985f0
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x2c]
mov ebp, eax
add esp, 4
lea ecx, [ecx*4 + 4]
mov edi, ebp
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x2c]
push eax
call fcn.00498600
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x34]
mov esi, dword [esp + 0x14]
add esp, 4
add eax, ecx
mov dword [ebx + 0x2c], ebp
mov dword [ebx + 0x34], eax
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov dword [eax + edx*4], esi
mov eax, dword [ebx + 0x30]
inc eax
mov dword [ebx + 0x30], eax
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xc
ret