Function at 0x4d5830
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x572586
push eax
mov dword fs:[0], esp
sub esp, 0x624
push ebx
mov ebx, dword [esp + 0x638]
push ebp
push esi
test ebx, ebx
push edi
mov esi, ecx
je 0x4d5f53
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov edi, dword [esi + 0x15c]
mov edx, dword [ebx]
mov dword [esp + 0x20], eax
push 1
lea eax, [esp + 0x28]
push 6
push eax
mov ecx, ebx
mov dword [esp + 0x28], edi
call dword [edx + 8]
mov ecx, dword [esp + 0x26]
push ecx
mov ecx, esi
call fcn.004c7870
mov edx, dword [esp + 0x28]
mov ecx, esi
push edx
mov word [esp + 0x2a], ax
call fcn.004c7870
cmp word [esp + 0x24], 0
mov word [esp + 0x28], ax
jne 0x4d5f53
mov ax, word [esp + 0x26]
cmp ax, 1
je 0x4d58c8
cmp ax, 2
jne 0x4d5f53
mov eax, dword [esp + 0x28]
and eax, 0xffff
mov dword [esi + 0x160], eax
shl eax, 4
push eax
call fcn.0052aca8
xor ebp, ebp
add esp, 4
cmp word [esp + 0x28], bp
mov dword [esp + 0x30], eax
jbe 0x4d5a42
lea edi, [eax + 6]
mov edx, dword [ebx]
push 1
lea eax, [edi - 6]
push 0x10
push eax
mov ecx, ebx
call dword [edx + 8]
mov cx, word [edi - 2]
push ecx
mov ecx, esi
call fcn.004c7870
mov word [edi - 2], ax
mov dx, word [edi]
push edx
mov ecx, esi
call fcn.004c7870
mov word [edi], ax
mov eax, dword [edi + 2]
push eax
mov ecx, esi
call fcn.004c78a0
mov dword [edi + 2], eax
mov ecx, dword [edi + 6]
push ecx
mov ecx, esi
call fcn.004c78a0
mov dword [edi + 6], eax
mov eax, dword [esp + 0x28]
mov edx, eax
inc ebp
and edx, 0xffff
add edi, 0x10
cmp ebp, edx
jl 0x4d58f7
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
test edi, edi
jl 0x4d5f4a
and eax, 0xffff
cmp edi, eax
jge 0x4d5f4a
cmp dword [esi + 0x148], 0xffffffff
jne 0x4d5a4b
shl edi, 4
add edi, ebp
xor eax, eax
mov al, byte [edi]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
xor eax, eax
mov al, byte [edi + 1]
test ecx, ecx
mov dword [esi + 0x10], eax
jne 0x4d5a2b
test eax, eax
jne 0x4d5a2b
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push eax
mov eax, dword [edi + 0xc]
add eax, ecx
mov ecx, ebx
push eax
call dword [edx + 0x10]
push 0
lea ecx, [esp + 0x70]
call fcn.004c9640
push 0xffffffffffffffff
lea ecx, [esp + 0x70]
mov dword [esp + 0x640], 0
call fcn.004c7810
push 4
push ebx
lea ecx, [esp + 0x74]
call fcn.004ca9c0
test al, al
je 0x4d5a06
lea ecx, [esp + 0x6c]
push 1
push ecx
mov ecx, esi
call fcn.004c9c60
mov edx, dword [esp + 0x28]
and edx, 0xffff
mov dword [esi + 0x160], edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x63c], 0xffffffff
mov dword [esp + 0x6c], 0x57b500
call fcn.004c9710
lea ecx, [esp + 0x6c]
call fcn.004c9660
push ebp
call fcn.0052a77f
add esp, 4
mov dword [esi + 0x40], 5
mov al, 1
jmp 0x4d5f55
mov eax, dword [esp + 0x28]
jmp 0x4d5958
mov edx, dword [esp + 0x20]
mov eax, dword [ebx]
shl edi, 4
add edi, ebp
push 0
mov ecx, dword [edi + 0xc]
add ecx, edx
push ecx
mov ecx, ebx
call dword [eax + 0x10]
cmp byte [edi], 0
jne 0x4d5af8
mov al, byte [edi + 1]
test al, al
jne 0x4d5af8
push 0
lea ecx, [esp + 0x70]
call fcn.004c9640
push 4
push ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x644], 1
call fcn.004ca9c0
test al, al
je 0x4d5aba
lea edx, [esp + 0x6c]
push 1
push edx
mov ecx, esi
call fcn.004c9c60
mov eax, dword [esp + 0x28]
and eax, 0xffff
mov dword [esi + 0x160], eax
push 5
mov ecx, esi
call fcn.004c7760
lea ecx, [esp + 0x6c]
mov dword [esp + 0x63c], 0xffffffff
mov dword [esp + 0x6c], 0x57b500
call fcn.004c9710
lea ecx, [esp + 0x6c]
call fcn.004c9660
push ebp
call fcn.0052a77f
add esp, 4
mov al, 1
jmp 0x4d5f55
mov edx, dword [ebx]
push 1
lea eax, [esp + 0x48]
push 0x28
push eax
mov ecx, ebx
call dword [edx + 8]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.004c78e0
mov ebp, dword [esp + 0x52]
xor edx, edx
mov dl, byte [edi + 1]
and ebp, 0xffff
xor eax, eax
push 5
mov al, byte [edi]
push ebp
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebp
call fcn.004c9980
mov eax, dword [esp + 0x64]
mov edx, dword [ebx]
test eax, eax
push 1
jne 0x4d5b46
mov eax, dword [esi + 0x28]
shl eax, 2
lea ecx, [esp + 0x238]
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
mov edx, dword [esi + 0x28]
lea eax, [esp + 0x234]
push edx
push eax
mov ecx, esi
call fcn.004c9350
cmp ebp, 0x18
jg 0x4d5b85
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x34]
mov edx, dword [ebx]
push 1
push eax
push ecx
mov ecx, ebx
call dword [edx + 8]
jmp 0x4d5c48
mov edx, dword [esi + 0xc]
imul edx, dword [esi + 0x10]
shl edx, 2
push edx
call fcn.0052aca8
mov ecx, dword [esi + 0xc]
add esp, 4
imul ecx, dword [esi + 0x10]
shl ecx, 2
mov ebp, eax
mov eax, dword [ebx]
push 1
push ecx
push ebp
mov ecx, ebx
mov dword [esp + 0x38], ebp
call dword [eax + 8]
mov ecx, esi
call fcn.004ccca0
test al, al
jne 0x4d5bc5
mov ecx, esi
call fcn.004cccf0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], 0
test eax, eax
jle 0x4d5c3f
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
call fcn.004c9b40
mov edi, eax
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x18], 0
jle 0x4d5c2b
mov al, byte [ebp]
mov byte [edi], al
mov cl, byte [ebp + 1]
inc edi
mov byte [edi], cl
mov dl, byte [ebp + 2]
mov ecx, dword [esp + 0x14]
inc edi
mov byte [edi], dl
mov al, byte [ebp + 3]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
mov ecx, esi
inc edi
call fcn.004ccf00
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0xc]
add ebp, 4
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x4d5bf1
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4d5bd4
mov ebp, dword [esp + 0x2c]
push ebp
call fcn.0052a77f
add esp, 4
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul edi, eax
push edi
mov dword [esp + 0x24], eax
call fcn.0052aca8
mov edx, dword [ebx]
add esp, 4
mov ecx, ebx
mov dword [esp + 0x14], eax
push 1
push edi
push eax
call dword [edx + 8]
test eax, eax
je 0x4d5ca5
xor eax, eax
test edi, edi
jle 0x4d5c95
mov ecx, dword [esp + 0x14]
cmp byte [eax + ecx], 0xff
jne 0x4d5cc6
inc eax
cmp eax, edi
jl 0x4d5c8a
push 0
mov ecx, esi
call fcn.004c7540
mov ecx, esi
call fcn.004cb440
mov eax, dword [esp + 0x14]
push eax
call fcn.0052a77f
mov ebp, dword [esp + 0x34]
add esp, 4
push ebp
call fcn.0052a77f
add esp, 4
mov al, 1
jmp 0x4d5f55
mov ecx, esi
mov byte [esp + 0x13], 0
call fcn.004ccca0
test al, al
jne 0x4d5cdf
mov ecx, esi
call fcn.004cccf0
jmp 0x4d5ce4
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x10]
xor ebx, ebx
test eax, eax
jle 0x4d5d45
xor ebp, ebp
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4d5d37
mov eax, edi
and eax, 0x80000007
jns 0x4d5d06
dec eax
or eax, 0xfffffff8
inc eax
mov edx, edi
mov cl, 7
sar edx, 3
sub cl, al
mov eax, dword [esp + 0x14]
add edx, ebp
mov dl, byte [edx + eax]
shr dl, cl
test dl, 1
je 0x4d5d2f
push 0
push ebx
push edi
mov ecx, esi
call fcn.004ccf00
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x4d5cf8
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
inc ebx
add ebp, ecx
cmp ebx, eax
jl 0x4d5cef
mov al, byte [esp + 0x13]
test al, al
jne 0x4d5d54
mov ecx, esi
call fcn.004ccd50
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], ebx
jle 0x4d5e4e
mov dword [esp + 0x34], ebx
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4d5e03
mov eax, edi
and eax, 0x80000007
jns 0x4d5d88
dec eax
or eax, 0xfffffff8
inc eax
mov cl, 7
mov edx, edi
sub cl, al
mov eax, dword [esp + 0x34]
sar edx, 3
add edx, eax
mov eax, dword [esp + 0x14]
mov dl, byte [edx + eax]
shr dl, cl
test dl, 1
je 0x4d5df7
push 0
push ebx
lea eax, [esp + 0x48]
push edi
push eax
mov ecx, esi
call fcn.004c8b80
mov ebp, dword [eax]
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x3c], ebp
jne 0x4d5de3
push ebx
push edi
mov ecx, esi
call fcn.004c89b0
and eax, 0xff
mov dword [esp + 0x18], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], ebp
jmp 0x4d5df7
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x38]
mov eax, dword [edx]
mov edx, dword [ecx]
cmp eax, edx
je 0x4d5df7
inc dword [esp + 0x18]
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x4d5d7a
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x10]
inc ebx
add edx, ecx
cmp ebx, eax
mov dword [esp + 0x34], edx
jl 0x4d5d6d
cmp dword [esp + 0x18], 1
jne 0x4d5e4e
cmp dword [esp + 0x1c], 8
jg 0x4d5ca5
mov edx, dword [esp + 0x38]
mov ecx, esi
push edx
call fcn.004c7570
mov eax, dword [esp + 0x2c]
mov ecx, esi
push eax
call fcn.004c7540
mov ecx, esi
call fcn.004ccd50
cmp dword [esp + 0x1c], 8
jg 0x4d5ca5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x6c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
test eax, eax
jle 0x4d5e9b
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4d5e93
push ebx
push edi
mov ecx, esi
call fcn.004c8ac0
and eax, 0xff
inc edi
mov byte [esp + eax + 0x6c], 1
mov eax, dword [esi + 0xc]
cmp edi, eax
jl 0x4d5e78
mov eax, dword [esi + 0x10]
inc ebx
cmp ebx, eax
jl 0x4d5e6f
mov eax, dword [esi + 0x28]
dec eax
js 0x4d5ca5
mov cl, byte [esp + eax + 0x6c]
test cl, cl
je 0x4d5eb5
dec eax
jns 0x4d5ea5
jmp 0x4d5ca5
test eax, eax
mov dword [esp + 0x1c], eax
jl 0x4d5ca5
mov eax, dword [esi + 0x10]
xor ebx, ebx
test eax, eax
mov byte [esp + 0x13], 0
jle 0x4d5f3e
xor ebp, ebp
mov eax, dword [esi + 0xc]
xor edi, edi
test eax, eax
jle 0x4d5f1c
mov edx, edi
and edx, 0x80000007
jns 0x4d5ee9
dec edx
or edx, 0xfffffff8
inc edx
mov eax, edi
mov cl, 7
sar eax, 3
sub cl, dl
mov edx, dword [esp + 0x14]
add eax, ebp
mov al, byte [eax + edx]
shr al, cl
test al, 1
je 0x4d5f14
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push edi
mov ecx, esi
call fcn.004c8e20
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0xc]
inc edi
cmp edi, eax
jl 0x4d5eda
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x10]
inc ebx
add ebp, ecx
cmp ebx, eax
jl 0x4d5ed1
mov al, byte [esp + 0x13]
test al, al
je 0x4d5f3e
mov edx, dword [esp + 0x1c]
mov ecx, esi
push edx
call fcn.004c7540
mov ecx, esi
call fcn.004ccd50
jmp 0x4d5ca5
push ebp
call fcn.0052a77f
add esp, 4
xor al, al
mov ecx, dword [esp + 0x634]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x630
ret 4