Function at 0x4d0410
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
mov eax, dword [0x50fb70]
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 0x4d05a4
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 0x4d0459
lea ecx, [edi + 0x649380]
call fcn.00442240
mov edx, dword [edi + 0x64b420]
push ebx
push edx
mov ecx, edi
mov dword [edi + 0x64b430], ebx
call fcn.004ca0c0
cmp dword [edi + 0x649384], 0xffffffff
mov esi, eax
jne 0x4d050e
mov eax, dword [edi + 0x649380]
mov edx, dword [eax + 4]
lea ecx, [edi + 0x649380]
push 0
push esi
call edx
test al, al
jne 0x4d050e
cmp dword [edi + 0x64b3e8], 0
jne 0x4d04b2
push esi
mov ecx, 0x5275b8
call fcn.0043dba0
push 0x12
mov ecx, edi
call fcn.004cbc80
push ebx
mov ecx, edi
call fcn.004ca7f0
cmp eax, 9
je 0x4d058a
mov ecx, dword [edi + 0x648350]
cmp ecx, 1
je 0x4d04d3
cmp ecx, 2
jne 0x4d04dc
cmp eax, 3
je 0x4d0570
push esi
call fcn.004df66f
mov eax, dword [edi + 0x64b420]
add esp, 4
push ebx
push eax
mov ecx, edi
call fcn.004ca0c0
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 0x4d0495
test esi, esi
je 0x4d051b
push esi
call fcn.004df66f
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 0x4d05a4
push 0x502298
lea esi, [edi + 0x649380]
push esi
mov ecx, edi
call fcn.004cf1d0
test eax, eax
jne 0x4d05a4
mov ecx, esi
call fcn.00442240
mov eax, dword [edi + 0x64b3fc]
push eax
mov ecx, 0x5275b8
call fcn.0043d670
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
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.004df824
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 0x4d05ed
cmp dword [edi + 0x648350], 2
je 0x4d05d3
mov ecx, ebx
call fcn.00442240
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
add esp, 0x28
ret 4
push 0x68
call fcn.004dfec6
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d0627
cmp dword [edi + 0x648350], 2
je 0x4d060d
mov ecx, ebx
call fcn.00442240
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
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 0x4d0759
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 0x4d076a
mov eax, edx
or word [esi + 0x2e], ax
cmp dword [edi + 0x648350], 2
jne 0x4d07c3
movzx eax, word [esi + 2]
movzx ecx, al
and eax, 0xff00
cmp eax, 0x2800
jbe 0x4d07b2
mov edi, dword [edi + 0x64b3fc]
push edi
push edi
mov ecx, 0x5275b8
call fcn.0043d710
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
add esp, 0x28
ret 4
cmp cx, 0x64
ja 0x4d0786
mov ecx, 0xc8
cmp word [esi + 6], cx
ja 0x4d0786
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.004dfec6
add esp, 4
mov dword [esi + 0x48], eax
test eax, eax
je 0x4d060d
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d0807
movzx eax, ax
push eax
call fcn.004dfec6
add esp, 4
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4d060d
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 0x4d05d3
movzx eax, word [esi + 0x22]
test ax, ax
je 0x4d084b
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 0x4d05d3
movzx edx, word [esi + 0x20]
mov eax, dword [esi + 0x48]
push esi
mov ecx, edi
mov byte [edx + eax], 0
call fcn.004ce4d0
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 0x4d08ac
mov eax, dword [esi + 0x48]
push eax
mov dword [esi + 0x4c], eax
call fcn.004c9e70
xor ebx, ebx
cmp eax, ebx
jne 0x4d08a7
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004f082f
add esp, 4
mov dword [esi + 0x48], eax
cmp eax, ebx
jne 0x4d08b4
jmp 0x4d060d
mov dword [esi + 0x48], eax
jmp 0x4d08b4
push esi
call fcn.004ce200
xor ebx, ebx
mov edx, 0xff00
test word [ebp], dx
jne 0x4d08cf
cmp dword [esi + 0x4c], ebx
jne 0x4d08cf
mov eax, dword [esi + 0x48]
push eax
push eax
call dword [sym.imp.USER32.dll_OemToCharA]
cmp dword [edi + 0x648350], 2
jne 0x4d090b
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 0x4d0923
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 0x4d0934
push eax
mov ecx, edi
call fcn.004d3930
jmp 0x4d093f
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, edi
call fcn.004d3880
mov dword [ebp + 0x54], eax
cmp dword [edi + 0x648350], 3
jne 0x4d09a5
mov eax, dword [ebp + 0x48]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d0951
sub eax, edx
mov word [ebp + 0x20], ax
mov edx, dword [esi + 0x48]
push edx
mov word [esi + 0x20], ax
call fcn.004df66f
mov eax, dword [ebp + 0x48]
push eax
call fcn.004f082f
add esp, 8
mov dword [esi + 0x48], eax
cmp eax, ebx
je 0x4d060d
mov ecx, dword [esi + 0x4c]
push ecx
call fcn.004df66f
mov eax, dword [ebp + 0x4c]
add esp, 4
cmp eax, ebx
jne 0x4d0999
xor eax, eax
jmp 0x4d09a2
push eax
call fcn.004f082f
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 0x4d09ef
movzx eax, word [ebp + 4]
test al, 1
jne 0x4d09ef
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 0x4d0a07
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 0x4d0a47
mov eax, dword [esi + 0xc]
mov dword [ebp + 0xc], eax
jmp 0x4d0a4d
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0xc], ecx
push 0
push esi
mov ecx, edi
call fcn.004cf220
test eax, eax
je 0x4d0a75
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
add esp, 0x28
ret 4
cmp dword [edi + 0x648350], ebx
mov bl, 8
jne 0x4d0a8a
test byte [esi + 0x2e], bl
je 0x4d0a8a
push 0xffffffffffffffff
push 0xfffffffffffffffe
jmp 0x4d0a92
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
push edx
push eax
mov ecx, edi
call fcn.004cacf0
mov dword [esp + 0x10], eax
cmp eax, 9
jne 0x4d0af0
cmp word [esi + 0x22], 0
je 0x4d0ab5
mov ecx, dword [esi + 0x3c]
push ecx
call fcn.004df66f
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d0ac8
mov edx, dword [esi + 0x48]
push edx
call fcn.004df66f
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d0ad8
push eax
call fcn.004df66f
add esp, 4
push esi
call fcn.004df66f
add esp, 4
push 9
mov ecx, edi
call fcn.004cbc80
mov eax, dword [esp + 0x10]
jmp 0x4d0af9
cmp eax, 2
je 0x4d0d2f
cmp dword [edi + 0x64b3c8], 0
jne 0x4d0d2f
cmp dword [edi + 0x648350], 2
jne 0x4d0b4e
test byte [ebp + 4], bl
je 0x4d0b5b
cmp dword [edi + 0x64b3cc], 0
je 0x4d0c5d
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 0x4d0b5b
push esi
mov ecx, edi
call fcn.004cf670
cmp dword [edi + 0x64b490], 1
jne 0x4d0b97
mov eax, dword [edi + 0x64b440]
cmp eax, dword [edi + 0x64b444]
je 0x4d0b97
mov ecx, dword [edi + 0x64b478]
push ecx
lea edx, [edi + 0x64a3a4]
push edx
push eax
mov ecx, edi
call fcn.004ca330
mov eax, dword [edi + 0x64b478]
push eax
call fcn.004df66f
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d0cb6
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 0x4d0c3d
movzx eax, ax
inc eax
push eax
call fcn.004dfec6
add esp, 4
mov dword [ebp + 0x40], eax
test eax, eax
je 0x4d060d
mov ecx, dword [esi + 0x3c]
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x4d0c33
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 0x4d0cf5
cmp word [esi + 0x22], 0
je 0x4d0c70
mov edx, dword [esi + 0x3c]
push edx
call fcn.004df66f
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d0c83
mov eax, dword [esi + 0x48]
push eax
call fcn.004df66f
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d0c93
push eax
call fcn.004df66f
add esp, 4
push esi
call fcn.004df66f
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
add esp, 0x28
ret 4
cmp word [esi + 0x22], 0
je 0x4d0cc9
mov edx, dword [esi + 0x3c]
push edx
call fcn.004df66f
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d0cdc
mov eax, dword [esi + 0x48]
push eax
call fcn.004df66f
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d0cec
push eax
call fcn.004df66f
add esp, 4
push esi
call fcn.004df66f
add esp, 4
cmp dword [edi + 0x648350], 2
jne 0x4d0d16
cmp dword [esp + 0x10], 0xb
jne 0x4d0d16
mov ecx, dword [edi + 0x64b3fc]
push ecx
mov ecx, 0x5275b8
call fcn.0043d670
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004df824
add esp, 0x28
ret 4
test eax, eax
jne 0x4d0d3b
mov dword [esp + 0x10], 3
cmp dword [edi + 0x648350], 2
jne 0x4d0d93
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 0x4d0da6
mov eax, dword [esi + 0x3c]
push eax
call fcn.004df66f
add esp, 4
cmp word [esi + 0x20], 0
je 0x4d0db9
mov ecx, dword [esi + 0x48]
push ecx
call fcn.004df66f
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4d0dc9
push eax
call fcn.004df66f
add esp, 4
push esi
call fcn.004df66f
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.004df824
add esp, 0x28
ret 4