Function at 0x5129b0
Capabilities:
Enumerate pe sections

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 0x43c
push ebx
mov ebx, 1
push ebp
mov ebp, dword [esp + 0x44c]
push esi
push edi
test bl, al
je 0x512a3f
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x1c]
push 0x24
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x454]
lea eax, [esp + 0x20]
push eax
push ecx
call fcn.0050b290
add esp, 0xc
test eax, eax
jne 0x512a0c
test byte [esp + 0x45c], bl
jne 0x512a3f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov dword [ebp + 1], edx
mov edx, dword [esp + 0x2c]
lea ecx, [ebp + 0xa]
mov dword [ebp + 5], eax
mov eax, dword [esp + 0x30]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x1b], ecx
test byte [esp + 0x458], 2
je 0x512fd8
mov esi, dword [esp + 0x450]
xor eax, eax
push eax
lea edx, [esp + 0x50]
push 0x400
push edx
mov ecx, 0x100
lea edi, [esp + 0x58]
push eax
push 0x2a
rep stosd dword es:[edi], eax
push esi
call fcn.0050b480
add esp, 0x18
test eax, eax
je 0x512ada
cmp byte [esp + 0x55], 0x1c
jb 0x512ada
mov al, byte [esp + 0x56]
test bl, al
je 0x512a8e
mov dword [ebp + 0x28], ebx
test al, 2
je 0x512a95
mov dword [ebp + 0x2c], ebx
test al, 8
je 0x512a9c
mov dword [ebp + 0x40], ebx
test al, 0x10
je 0x512aa3
mov dword [ebp + 0x64], ebx
test al, 0x20
je 0x512aaa
mov dword [ebp + 0x7c], ebx
mov al, byte [esp + 0x57]
test bl, al
je 0x512ab5
mov dword [ebp + 0x30], ebx
test al, 2
je 0x512abc
mov dword [ebp + 0x34], ebx
test al, 0x10
je 0x512ac3
mov dword [ebp + 0x68], ebx
test al, 0x20
je 0x512acd
mov dword [ebp + 0x80], ebx
test al, al
je 0x512ad4
mov byte [ebp + 0x20], bl
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x74], eax
lea ecx, [esp + 0x1c]
push 8
push ecx
push 0
push 0
push esi
call fcn.0050c450
add esp, 0x14
test eax, eax
jne 0x512b0d
test byte [esp + 0x45c], 2
jne 0x512fd8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edi, dword [esp + 0x1e]
mov edx, dword [esp + 0x1f]
and edi, 0xff
and edx, 0xff
shl edi, 8
or edi, edx
add edi, 4
push edi
push 0x40
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
jne 0x512b4b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x43c
ret
mov eax, dword [esp + 0x450]
push edi
push esi
push 0
push 0
push eax
call fcn.0050c450
add esp, 0x14
test eax, eax
jne 0x512b87
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x45c], 2
jne 0x512fd8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret
mov edx, 8
cmp edi, edx
mov dword [esp + 0x10], edx
jbe 0x512fc0
add edx, esi
xor eax, eax
xor ecx, ecx
mov ah, byte [edx]
mov cl, byte [edx + 1]
or eax, ecx
cmp eax, 0x2f
ja 0x512da1
je 0x512d89
cmp eax, 0x2e
ja case.0x512db8.66
xor ecx, ecx
mov cl, byte [eax + 0x513090]
jmp dword [ecx*4 + 0x513068]
test byte [edx + 3], 0xfc
jbe case.0x512db8.66
mov eax, 0xfffffffb
lea esi, [edx + 5]
sub eax, edx
xor ecx, ecx
mov ch, byte [esi - 1]
mov cl, byte [esi]
lea edi, [ecx - 1]
cmp edi, 0x51
ja case.0x512bfb.20
xor ecx, ecx
mov cl, byte [edi + 0x513110]
jmp dword [ecx*4 + 0x5130c0]
mov dword [ebp + 0x24], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x28], ebx
mov dword [ebp + 0x30], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x2c], ebx
mov dword [ebp + 0x34], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x40], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x68], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x7c], ebx
mov dword [ebp + 0x80], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x78], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0x44], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x4c], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x54], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x5c], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x84], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0xc8], ebx
jmp case.0x512bfb.20
mov dword [ebp + 0xcc], ebx
mov dword [ebp + 0xd0], ebx
jmp case.0x512bfb.1
mov dword [ebp + 0xd4], ebx
mov dword [ebp + 0xd8], ebx
mov byte [ebp + 0x20], bl
mov cl, byte [edx + 3]
add esi, 4
and ecx, 0xfc
lea edi, [eax + esi]
cmp edi, ecx
jb 0x512be0
jmp case.0x512db8.66
mov dword [ebp + 0x24], ebx
mov al, byte [edx + 4]
test al, 2
je 0x512cef
mov dword [ebp + 0x38], ebx
test byte [edx + 4], bl
je case.0x512db8.66
mov dword [ebp + 0x3c], ebx
jmp case.0x512db8.66
mov dword [ebp + 0x40], ebx
mov al, byte [edx + 6]
test bl, al
je case.0x512db8.66
mov dword [ebp + 0x6c], ebx
jmp case.0x512db8.66
test byte [edx + 4], bl
je 0x512d21
mov dword [ebp + 0x34], ebx
mov byte [ebp + 0x20], bl
test byte [edx + 4], 2
je 0x512d2a
mov dword [ebp + 0x44], ebx
test byte [edx + 4], 4
je case.0x512db8.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x512db8.66
mov dword [ebp + 0x44], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x512db8.66
mov dword [ebp + 0x48], ebx
mov byte [ebp + 0x20], bl
jmp case.0x512db8.66
mov dword [ebp + 0x4c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x512db8.66
mov dword [ebp + 0x50], ebx
mov byte [ebp + 0x20], bl
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x30], ebx
test byte [edx + 4], 2
je case.0x512db8.66
mov dword [ebp + 0x34], ebx
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x68], ebx
test byte [edx + 4], 2
je case.0x512db8.66
mov dword [ebp + 0x78], ebx
jmp case.0x512db8.66
lea edi, [eax - 0x33]
cmp edi, 0xdd
ja case.0x512db8.66
xor eax, eax
mov al, byte [edi + 0x5131a4]
jmp dword [eax*4 + 0x513164]
mov byte [ebp + 0x20], bl
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x34], ebx
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
jmp case.0x512db8.66
mov dword [ebp + 0x54], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x58], ebx
jmp case.0x512db8.66
mov dword [ebp + 0x5c], ebx
mov al, byte [edx + 4]
test bl, al
je case.0x512db8.66
mov byte [ebp + 0x20], bl
mov dword [ebp + 0x60], ebx
jmp case.0x512db8.66
mov dword [ebp + 0x84], ebx
mov al, byte [edx + 9]
test al, 2
je 0x512e2b
mov dword [ebp + 0xa8], ebx
test byte [edx + 9], 4
je 0x512e3d
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
test byte [edx + 9], 8
je 0x512e55
mov dword [ebp + 0xa8], ebx
mov dword [ebp + 0xac], ebx
mov dword [ebp + 0xb0], ebx
test byte [edx + 0x11], 2
je 0x512e67
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
test byte [edx + 0x11], 4
je case.0x512db8.66
mov dword [ebp + 0x88], ebx
mov dword [ebp + 0x8c], ebx
mov dword [ebp + 0x90], ebx
mov dword [ebp + 0x94], ebx
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 9]
test al, 2
je 0x512e9e
mov dword [ebp + 0xb8], ebx
test byte [edx + 9], 4
je 0x512eb0
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
test byte [edx + 9], 8
je 0x512ec8
mov dword [ebp + 0xb8], ebx
mov dword [ebp + 0xbc], ebx
mov dword [ebp + 0xc0], ebx
test byte [edx + 0x11], 2
je 0x512eda
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
test byte [edx + 0x11], 4
je case.0x512db8.66
mov dword [ebp + 0x98], ebx
mov dword [ebp + 0x9c], ebx
mov dword [ebp + 0xa0], ebx
mov dword [ebp + 0xa4], ebx
jmp case.0x512db8.66
mov dword [ebp + 0xc8], ebx
mov al, byte [edx + 4]
test bl, al
je 0x512f14
mov dword [ebp + 0xcc], ebx
test byte [edx + 6], bl
je case.0x512db8.66
mov dword [ebp + 0xd4], ebx
jmp case.0x512db8.66
mov byte [ebp + 0x20], bl
mov al, byte [edx + 4]
test bl, al
je 0x512f35
mov dword [ebp + 0xd0], ebx
test byte [edx + 6], bl
je case.0x512db8.66
mov dword [ebp + 0xd8], ebx
jmp case.0x512db8.66
mov dword [ebp + 0xdc], ebx
mov dword [ebp + 0xe0], ebx
jmp case.0x512db8.66
xor ecx, ecx
lea esi, [edx + 4]
mov cl, byte [edx + 3]
lea edi, [ebp + 0xe4]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp case.0x512db8.66
lea ecx, [edx + 4]
lea eax, [ebp + 0x1e4]
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov cx, word [ecx + 0xc]
mov word [eax + 0xc], cx
jmp case.0x512db8.66
mov dword [ebp + 0x1f4], ebx
jmp case.0x512db8.66
mov dword [ebp + 0x1f8], ebx
mov ecx, dword [esp + 0x10]
xor eax, eax
mov al, byte [edx + 3]
mov esi, dword [esp + 0x14]
lea edx, [ecx + eax + 4]
mov eax, dword [esp + 0x18]
cmp edx, eax
mov dword [esp + 0x10], edx
jb 0x512b98
mov eax, dword [ebp + 0x28]
test eax, eax
jne 0x512fce
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x512fd1
mov dword [ebp + 0x24], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test byte [esp + 0x458], 8
je 0x513044
xor eax, eax
lea edx, [esp + 0x4c]
push eax
mov ecx, 0x100
lea edi, [esp + 0x50]
push 0x400
push edx
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x460]
push 0x2a
push eax
call fcn.0050b480
add esp, 0x18
test eax, eax
je 0x513051
cmp byte [esp + 0x55], 0x1c
jb 0x513051
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x61]
and ecx, 0xff
and edx, 0xff
shl ecx, 8
add ecx, edx
mov dword [ebp + 0x200], 0
shl ecx, 0xa
mov dword [ebp + 0x1fc], ecx
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x43c
ret
test byte [esp + 0x45c], 8
jne 0x513044
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x43c
ret