Function at 0x4d7110
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [0x519bc0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push ebp
mov ebp, dword [esp + 0x34]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x648350], 2
je 0x4d72a4
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
cmp ebx, dword [edi + 0x64b430]
je 0x4d7159
lea ecx, [edi + 0x649380]
call fcn.00444230
mov edx, dword [edi + 0x64b420]
push ebx
push edx
mov ecx, edi
mov dword [edi + 0x64b430], ebx
call fcn.004d0d30
cmp dword [edi + 0x649384], 0xffffffff
mov esi, eax
jne 0x4d720e
mov eax, dword [edi + 0x649380]
mov edx, dword [eax + 4]
lea ecx, [edi + 0x649380]
push 0
push esi
call edx
test al, al
jne 0x4d720e
cmp dword [edi + 0x64b3e8], 0
jne 0x4d71b2
push esi
mov ecx, 0x531158
call fcn.0043f990
push 0x12
mov ecx, edi
call fcn.004d2910
push ebx
mov ecx, edi
call fcn.004d1460
cmp eax, 9
je 0x4d728a
mov ecx, dword [edi + 0x648350]
cmp ecx, 1
je 0x4d71d3
cmp ecx, 2
jne 0x4d71dc
cmp eax, 3
je 0x4d7270
push esi
call fcn.004e68b2
mov eax, dword [edi + 0x64b420]
add esp, 4
push ebx
push eax
mov ecx, edi
call fcn.004d0d30
mov edx, dword [edi + 0x649380]
lea ecx, [edi + 0x649380]
mov esi, eax
mov eax, dword [edx + 4]
push 0
push esi
call eax
test al, al
je 0x4d7195
test esi, esi
je 0x4d721b
push esi
call fcn.004e68b2
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [edi + 0x649380]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [edi + 0x649380]
push eax
mov eax, dword [esp + 0x18]
push eax
call edx
cmp dword [edi + 0x648350], 2
je 0x4d72a4
push 0x50aab4
lea esi, [edi + 0x649380]
push esi
mov ecx, edi
call fcn.004d5ed0
test eax, eax
jne 0x4d72a4
mov ecx, esi
call fcn.00444230
mov eax, dword [edi + 0x64b3fc]
push eax
mov ecx, 0x531158
call fcn.0043f440
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
mov edx, dword [edi + 0x649380]
mov edx, dword [edx + 8]
lea ebx, [edi + 0x649380]
push 0x1a
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call edx
cmp eax, 0x1a
je 0x4d72ed
cmp dword [edi + 0x648350], 2
je 0x4d72d3
mov ecx, ebx
call fcn.00444230
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
push 0x68
call fcn.004e7106
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d7327
cmp dword [edi + 0x648350], 2
je 0x4d730d
mov ecx, ebx
call fcn.00444230
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
movzx eax, byte [esp + 0x19]
movzx ecx, byte [esp + 0x18]
shl ax, 8
or ax, cx
mov word [esi + 2], ax
movzx edx, byte [esp + 0x1b]
movzx eax, byte [esp + 0x1a]
shl dx, 8
or dx, ax
mov word [esi + 0x2e], dx
movzx ecx, byte [esp + 0x1d]
movzx edx, byte [esp + 0x1c]
shl cx, 8
or cx, dx
mov word [esi + 6], cx
movzx eax, byte [esp + 0x21]
movzx edx, byte [esp + 0x20]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x1f]
or ecx, edx
shl ecx, 0x10
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x1e]
or ecx, edx
or ecx, eax
mov dword [esi + 8], ecx
movzx ecx, byte [esp + 0x25]
movzx eax, byte [esp + 0x24]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x23]
or edx, eax
shl cx, 8
movzx eax, cx
movzx ecx, byte [esp + 0x22]
shl edx, 0x10
or edx, eax
or edx, ecx
mov dword [esi + 0xc], edx
movzx edx, byte [esp + 0x2f]
movzx eax, byte [esp + 0x2e]
shl dx, 8
or dx, ax
mov word [esi + 0x20], dx
movzx ecx, byte [esp + 0x31]
movzx edx, byte [esp + 0x30]
shl cx, 8
or cx, dx
mov word [esi + 0x22], cx
cmp dword [edi + 0x648350], 2
jne 0x4d7459
movzx eax, byte [esp + 0x29]
movzx edx, byte [esp + 0x28]
shl ax, 8
movzx ecx, ax
movzx eax, byte [esp + 0x27]
or ecx, edx
shl ecx, 0x10
shl ax, 8
movzx edx, ax
movzx eax, byte [esp + 0x26]
or ecx, edx
or ecx, eax
mov dword [esi + 0x10], ecx
xor eax, eax
mov dword [esi + 0x14], eax
movzx ecx, byte [esp + 0x2d]
shl cx, 8
movzx edx, cx
movzx ecx, byte [esp + 0x2c]
or edx, ecx
movzx ecx, byte [esp + 0x2b]
shl cx, 8
movzx ecx, cx
shl edx, 0x10
or edx, ecx
movzx ecx, byte [esp + 0x2a]
or edx, ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov edx, 0x800
test word [ebp + 4], dx
je 0x4d746a
mov eax, edx
or word [esi + 0x2e], ax
cmp dword [edi + 0x648350], 2
jne 0x4d74c3
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x4d74b2
mov edi, dword [edi + 0x64b3fc]
push edi
push edi
mov ecx, 0x531158
call fcn.0043f4e0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
cmp cx, 0x64
ja 0x4d7486
mov ecx, 0xc8
cmp word [esi + 6], cx
ja 0x4d7486
movzx edx, word [esi + 0x20]
xor eax, eax
inc edx
push edx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.004e7106
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4d730d
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d7507
movzx eax, ax
push eax
call fcn.004e7106
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4d730d
movzx eax, word [esi + 0x20]
mov ecx, dword [esi + 0x48]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push eax
push ecx
mov ecx, ebx
call edx
movzx ecx, word [esi + 0x20]
cmp eax, ecx
jne 0x4d72d3
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d754b
mov ecx, dword [esi + 0x3c]
mov edx, dword [ebx]
mov edx, dword [edx + 8]
movzx eax, ax
push eax
push ecx
mov ecx, ebx
call edx
movzx ecx, word [esi + 0x22]
cmp eax, ecx
jne 0x4d72d3
movzx edx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov ecx, edi
mov byte [edx + eax], 0
call fcn.004d51d0
mov dword [edi + 0x64b3f4], eax
xor ecx, ecx
mov word [esi], cx
mov dx, word [ebp]
mov eax, 0x800
mov word [esi], dx
mov ecx, edi
test word [esi + 0x2e], ax
je 0x4d75ac
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004d0ac0
xor ebx, ebx
cmp eax, ebx
jne 0x4d75a7
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004f7a4f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x4d75b4
jmp 0x4d730d
mov dword [esi + 0x48], eax
jmp 0x4d75b4
push esi
call fcn.004d4f00
xor ebx, ebx
mov edx, 0xff00
test word [ebp], dx
jne 0x4d75ca
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [0x5015ec]
cmp dword [edi + 0x648350], 2
jne 0x4d7606
mov ax, word [esi + 0x2e]
mov word [esi + 4], ax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [ebp + 0x50], ebx
mov cx, word [esi + 0x2e]
mov word [ebp + 4], cx
mov edx, dword [esi + 0x18]
mov dword [ebp + 0x18], edx
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x1c], eax
mov ecx, dword [esi + 0x10]
mov dword [ebp + 0x10], ecx
mov edx, dword [esi + 0x14]
mov dword [ebp + 0x14], edx
jmp 0x4d761e
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x1c], ecx
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4d762f
push eax
mov ecx, edi
call fcn.004da760
jmp 0x4d763a
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, edi
call fcn.004da6b0
mov dword [ebp + 0x54], eax
cmp dword [edi + 0x648350], 3
jne 0x4d76a4
mov eax, dword [ebp + 0x48]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7650
sub eax, edx
mov word [ebp + 0x20], ax
mov edx, dword [esi + 0x48]
push edx
mov word [esi + 0x20], ax
call fcn.004e68b2
mov eax, dword [ebp + 0x48]
push eax
call fcn.004f7a4f
add esp, 8
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x4d730d
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004e68b2
mov eax, dword [ebp + 0x4c]
add esp, 4
cmp eax, ebx
jne 0x4d7698
xor eax, eax
jmp 0x4d76a1
push eax
call fcn.004f7a4f
add esp, 4
mov dword [esi + 0x4c], eax
mov edx, dword [edi + 0x64b444]
mov dword [ebp + 0x28], edx
mov eax, dword [edi + 0x64b488]
mov dword [ebp + 0x30], eax
mov ecx, dword [edi + 0x64b48c]
mov dword [ebp + 0x34], ecx
cmp dword [edi + 0x648350], 2
je 0x4d76ee
movzx eax, word [ebp + 4]
test al, 1
jne 0x4d76ee
and eax, 0xfff7
mov word [ebp + 4], ax
mov edx, 0xfff7
and word [esi + 0x2e], dx
mov word [esi + 4], ax
movzx eax, word [esi + 0x2e]
mov word [ebp + 0x2e], ax
xor eax, eax
test byte [ebp + 0x2e], 8
je 0x4d7706
cmp dword [edi + 0x64b3f4], ebx
setne al
lea eax, [eax*8 + 0x10]
movzx edx, word [esi + 0x20]
movzx ecx, word [esi + 0x22]
lea ecx, [ecx + edx + 0x1a]
xor edx, edx
xor ebx, ebx
add ecx, eax
adc edx, ebx
add ecx, dword [ebp + 0x10]
adc edx, dword [ebp + 0x14]
add ecx, 4
adc edx, ebx
add dword [edi + 0x64b418], ecx
mov ebx, 2
adc dword [edi + 0x64b41c], edx
cmp dword [edi + 0x648350], ebx
jne 0x4d7746
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4d774c
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
push 0
push esi
mov ecx, edi
call fcn.004d5f20
test eax, eax
je 0x4d7774
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
cmp dword [edi + 0x648350], ebx
mov bl, 8
jne 0x4d7789
test byte [esi + 0x2e], bl
je 0x4d7789
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4d7791
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
mov ecx, edi
call fcn.004d1980
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4d77ef
cmp word [esi + 0x22], 0
je 0x4d77b4
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.004e68b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d77c7
mov edx, dword [esi + 0x48]
push edx
call fcn.004e68b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d77d7
push eax
call fcn.004e68b2
add esp, 4
push esi
call fcn.004e68b2
add esp, 4
push 9
mov ecx, edi
call fcn.004d2910
mov eax, dword [esp + 0x10]
jmp 0x4d77f8
cmp eax, 2
je 0x4d7a2e
cmp dword [edi + 0x64b3c8], 0
jne 0x4d7a2e
cmp dword [edi + 0x648350], 2
jne 0x4d784d
test byte [ebp + 4], bl
je 0x4d785a
cmp dword [edi + 0x64b3cc], 0
je 0x4d795c
mov eax, dword [edi + 0x64b3d0]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x64b3d8]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x64b3dc]
mov dword [esi + 0x14], edx
mov eax, dword [edi + 0x64b3e0]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x64b3e4]
mov dword [esi + 0x1c], ecx
test byte [ebp + 4], bl
je 0x4d785a
push esi
mov ecx, edi
call fcn.004d6370
cmp dword [edi + 0x64b490], 1
jne 0x4d7896
mov eax, dword [edi + 0x64b440]
cmp eax, dword [edi + 0x64b444]
je 0x4d7896
mov ecx, dword [edi + 0x64b478]
push ecx
lea edx, [edi + 0x64a3a4]
push edx
push eax
mov ecx, edi
call fcn.004d0fa0
mov eax, dword [edi + 0x64b478]
push eax
call fcn.004e68b2
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d79b5
mov cx, word [esi + 2]
mov word [ebp + 2], cx
movzx edx, word [esi + 6]
mov word [ebp + 6], dx
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [ebp + 0xc], ecx
movzx edx, word [esi + 0x2e]
mov word [ebp + 0x2e], dx
movzx eax, word [esi + 0x2e]
mov word [ebp + 4], ax
mov ecx, dword [esi + 0x18]
mov dword [ebp + 0x18], ecx
mov edx, dword [esi + 0x1c]
mov dword [ebp + 0x1c], edx
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x10], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp + 0x14], ecx
movzx edx, word [esi + 0x20]
mov word [ebp + 0x20], dx
movzx eax, word [esi + 0x22]
mov word [ebp + 0x22], ax
mov ecx, dword [esi + 0x3c]
mov dword [ebp + 0x3c], ecx
movzx edx, word [esi + 0x22]
mov word [ebp + 0x24], dx
mov dword [ebp + 0x40], 0
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d793c
movzx eax, ax
inc eax
push eax
call fcn.004e7106
add esp, 4
mov dword [ebp + 0x40], eax
test eax, eax
je 0x4d730d
mov ecx, dword [esi + 0x3c]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4d7932
xor ecx, ecx
xor edx, edx
mov word [ebp + 0x26], cx
mov word [ebp + 0x2c], dx
mov dword [ebp + 0x38], edx
mov eax, dword [esi + 0x48]
mov dword [ebp + 0x48], eax
mov ecx, dword [esi + 0x4c]
mov dword [ebp + 0x4c], ecx
jmp 0x4d79f4
cmp word [esi + 0x22], 0
je 0x4d796f
mov edx, dword [esi + 0x3c]
push edx
call fcn.004e68b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d7982
mov eax, dword [esi + 0x48]
push eax
call fcn.004e68b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d7992
push eax
call fcn.004e68b2
add esp, 4
push esi
call fcn.004e68b2
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
cmp word [esi + 0x22], 0
je 0x4d79c8
mov edx, dword [esi + 0x3c]
push edx
call fcn.004e68b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d79db
mov eax, dword [esi + 0x48]
push eax
call fcn.004e68b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d79eb
push eax
call fcn.004e68b2
add esp, 4
push esi
call fcn.004e68b2
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d7a15
cmp dword [esp + 0x10], 0xb
jne 0x4d7a15
mov ecx, dword [edi + 0x64b3fc]
push ecx
mov ecx, 0x531158
call fcn.0043f440
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4
test eax, eax
jne 0x4d7a3a
mov dword [esp + 0x10], 3
cmp dword [edi + 0x648350], 2
jne 0x4d7a92
mov eax, dword [edi + 0x64b484]
mov edx, dword [edi + 0x64835c]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [edi + 0x64835c]
push eax
mov eax, dword [edi + 0x64b480]
push eax
mov dword [edi + 0x64b3c8], 0
call edx
mov eax, dword [edi + 0x64b480]
mov ecx, dword [edi + 0x64b484]
mov dword [edi + 0x64b488], eax
mov dword [edi + 0x64b48c], ecx
mov dword [edi + 0x64b418], eax
mov dword [edi + 0x64b41c], ecx
cmp word [esi + 0x22], 0
je 0x4d7aa5
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e68b2
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d7ab8
mov ecx, dword [esi + 0x48]
push ecx
call fcn.004e68b2
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d7ac8
push eax
call fcn.004e68b2
add esp, 4
push esi
call fcn.004e68b2
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e6a64
add esp, 0x28
ret 4