Function at 0x4d7150
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 0x4d72e4
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 0x4d7199
lea ecx, [edi + 0x649380]
call fcn.004441a0
mov edx, dword [edi + 0x64b420]
push ebx
push edx
mov ecx, edi
mov dword [edi + 0x64b430], ebx
call fcn.004d0d70
cmp dword [edi + 0x649384], 0xffffffff
mov esi, eax
jne 0x4d724e
mov eax, dword [edi + 0x649380]
mov edx, dword [eax + 4]
lea ecx, [edi + 0x649380]
push 0
push esi
call edx
test al, al
jne 0x4d724e
cmp dword [edi + 0x64b3e8], 0
jne 0x4d71f2
push esi
mov ecx, 0x531158
call fcn.0043f910
push 0x12
mov ecx, edi
call fcn.004d2950
push ebx
mov ecx, edi
call fcn.004d14a0
cmp eax, 9
je 0x4d72ca
mov ecx, dword [edi + 0x648350]
cmp ecx, 1
je 0x4d7213
cmp ecx, 2
jne 0x4d721c
cmp eax, 3
je 0x4d72b0
push esi
call fcn.004e7061
mov eax, dword [edi + 0x64b420]
add esp, 4
push ebx
push eax
mov ecx, edi
call fcn.004d0d70
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 0x4d71d5
test esi, esi
je 0x4d725b
push esi
call fcn.004e7061
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 0x4d72e4
push 0x50aa9c
lea esi, [edi + 0x649380]
push esi
mov ecx, edi
call fcn.004d5f10
test eax, eax
jne 0x4d72e4
mov ecx, esi
call fcn.004441a0
mov eax, dword [edi + 0x64b3fc]
push eax
mov ecx, 0x531158
call fcn.0043f3c0
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
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.004e6b3a
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 0x4d732d
cmp dword [edi + 0x648350], 2
je 0x4d7313
mov ecx, ebx
call fcn.004441a0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x28
ret 4
push 0x68
call fcn.004e7f56
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d7367
cmp dword [edi + 0x648350], 2
je 0x4d734d
mov ecx, ebx
call fcn.004441a0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
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 0x4d7499
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 0x4d74aa
mov eax, edx
or word [esi + 0x2e], ax
cmp dword [edi + 0x648350], 2
jne 0x4d7503
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x4d74f2
mov edi, dword [edi + 0x64b3fc]
push edi
push edi
mov ecx, 0x531158
call fcn.0043f460
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x28
ret 4
cmp cx, 0x64
ja 0x4d74c6
mov ecx, 0xc8
cmp word [esi + 6], cx
ja 0x4d74c6
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.004e7f56
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4d734d
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d7547
movzx eax, ax
push eax
call fcn.004e7f56
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4d734d
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 0x4d7313
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d758b
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 0x4d7313
movzx edx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov ecx, edi
mov byte [edx + eax], 0
call fcn.004d5210
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 0x4d75ec
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004d0b00
xor ebx, ebx
cmp eax, ebx
jne 0x4d75e7
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004f7a9f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x4d75f4
jmp 0x4d734d
mov dword [esi + 0x48], eax
jmp 0x4d75f4
push esi
call fcn.004d4f40
xor ebx, ebx
mov edx, 0xff00
test word [ebp], dx
jne 0x4d760a
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [edi + 0x648350], 2
jne 0x4d7646
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 0x4d765e
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 0x4d766f
push eax
mov ecx, edi
call fcn.004da7b0
jmp 0x4d767a
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, edi
call fcn.004da700
mov dword [ebp + 0x54], eax
cmp dword [edi + 0x648350], 3
jne 0x4d76e4
mov eax, dword [ebp + 0x48]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d7690
sub eax, edx
mov word [ebp + 0x20], ax
mov edx, dword [esi + 0x48]
push edx
mov word [esi + 0x20], ax
call fcn.004e7061
mov eax, dword [ebp + 0x48]
push eax
call fcn.004f7a9f
add esp, 8
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x4d734d
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004e7061
mov eax, dword [ebp + 0x4c]
add esp, 4
cmp eax, ebx
jne 0x4d76d8
xor eax, eax
jmp 0x4d76e1
push eax
call fcn.004f7a9f
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 0x4d772e
movzx eax, word [ebp + 4]
test al, 1
jne 0x4d772e
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 0x4d7746
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 0x4d7786
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4d778c
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
push 0
push esi
mov ecx, edi
call fcn.004d5f60
test eax, eax
je 0x4d77b4
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x28
ret 4
cmp dword [edi + 0x648350], ebx
mov bl, 8
jne 0x4d77c9
test byte [esi + 0x2e], bl
je 0x4d77c9
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4d77d1
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
mov ecx, edi
call fcn.004d19c0
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4d782b
cmp word [esi + 0x22], 0
je 0x4d77f4
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.004e7061
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d7807
mov edx, dword [esi + 0x48]
push edx
call fcn.004e7061
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d7817
push eax
call fcn.004e7061
add esp, 4
push esi
call fcn.004e7061
add esp, 4
push 9
mov ecx, edi
call fcn.004d2950
jmp 0x4d7834
cmp eax, 2
je 0x4d7a7c
cmp dword [edi + 0x64b3c8], 0
jne 0x4d7a78
cmp dword [edi + 0x648350], 2
jne 0x4d7889
test byte [ebp + 4], bl
je 0x4d7896
cmp dword [edi + 0x64b3cc], 0
je 0x4d79a6
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 0x4d7896
push esi
mov ecx, edi
call fcn.004d63b0
cmp dword [edi + 0x64b490], 1
jne 0x4d78d2
mov eax, dword [edi + 0x64b440]
cmp eax, dword [edi + 0x64b444]
je 0x4d78d2
mov ecx, dword [edi + 0x64b478]
push ecx
lea edx, [edi + 0x64a3a4]
push edx
push eax
mov ecx, edi
call fcn.004d0fe0
mov eax, dword [edi + 0x64b478]
push eax
call fcn.004e7061
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d79ff
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 0x4d7986
movzx eax, ax
inc eax
push eax
call fcn.004e7f56
add esp, 4
mov dword [ebp + 0x40], eax
test eax, eax
je 0x4d734d
movzx ecx, word [esi + 0x22]
mov edx, dword [esi + 0x3c]
push ecx
push edx
push eax
call fcn.004e7a80
movzx eax, word [esi + 0x22]
mov ecx, dword [ebp + 0x40]
add esp, 0xc
mov byte [eax + ecx], 0
xor edx, edx
xor eax, eax
mov word [ebp + 0x26], dx
mov word [ebp + 0x2c], ax
mov dword [ebp + 0x38], eax
mov ecx, dword [esi + 0x48]
mov dword [ebp + 0x48], ecx
mov edx, dword [esi + 0x4c]
mov dword [ebp + 0x4c], edx
jmp 0x4d7a3e
cmp word [esi + 0x22], 0
je 0x4d79b9
mov edx, dword [esi + 0x3c]
push edx
call fcn.004e7061
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d79cc
mov eax, dword [esi + 0x48]
push eax
call fcn.004e7061
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d79dc
push eax
call fcn.004e7061
add esp, 4
push esi
call fcn.004e7061
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x28
ret 4
cmp word [esi + 0x22], 0
je 0x4d7a12
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e7061
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d7a25
mov ecx, dword [esi + 0x48]
push ecx
call fcn.004e7061
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d7a35
push eax
call fcn.004e7061
add esp, 4
push esi
call fcn.004e7061
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d7a5f
cmp dword [esp + 0x10], 0xb
jne 0x4d7a5f
mov edx, dword [edi + 0x64b3fc]
push edx
mov ecx, 0x531158
call fcn.0043f3c0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004e6b3a
add esp, 0x28
ret 4
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4d7a88
mov dword [esp + 0x10], 3
cmp dword [edi + 0x648350], 2
jne 0x4d7ae0
mov edx, dword [edi + 0x64b484]
mov eax, dword [edi + 0x64835c]
mov eax, dword [eax + 0xc]
push 0
lea ecx, [edi + 0x64835c]
push edx
mov edx, dword [edi + 0x64b480]
push edx
mov dword [edi + 0x64b3c8], 0
call eax
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 0x4d7af3
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.004e7061
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d7b06
mov edx, dword [esi + 0x48]
push edx
call fcn.004e7061
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d7b16
push eax
call fcn.004e7061
add esp, 4
push esi
call fcn.004e7061
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.004e6b3a
add esp, 0x28
ret 4