Function at 0x50a860
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov esi, ebp
imul esi, esi, 0x3e
lea ebx, [ebp + ebp*2]
shl ebx, 2
lea eax, [ebx + 0x902898]
mov dword [esp + 0x10], eax
mov eax, dword [eax]
push edi
lea edi, [esi + 0xe74c20]
push eax
lea esi, [esi + 0xe74c9c]
mov dword [esp + 0x60], 0xd92220
mov dword [esp + 0x2c], ebx
call fcn.00416000
mov ecx, dword [ebx + 0x90289c]
push ecx
mov dword [esp + 0x18], eax
call fcn.00416000
lea edx, [ebp + ebp*2]
add esp, 8
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x34]
add eax, ebx
mov ebp, dword [eax*4 + 0x902898]
push ebp
mov dword [esp + 0x68], 0
mov dword [esp + 0x34], ebp
call fcn.00416000
add esp, 4
test eax, eax
jne 0x50aac9
cmp byte [ebx + edi], 0
jne 0x50a90c
mov cx, word [esi + ebx*2 + 4]
cmp cx, word [edi + ebx*2 + 4]
je 0x50aac9
mov eax, 1
jmp 0x50aa71
mov dx, word [edi + ebx*8 + 0xa]
cmp dx, word [esi + ebx*8 + 0xa]
lea eax, [ebx*4]
lea ecx, [ebx*4 + 8]
mov edx, 1
je 0x50a92f
mov dword [esp + 0x64], edx
mov bp, word [edi + eax*2 + 0xc]
cmp bp, word [esi + eax*2 + 0xc]
je 0x50a93f
mov dword [esp + 0x64], edx
mov bp, word [edi + eax*2 + 0xe]
cmp bp, word [esi + eax*2 + 0xe]
je 0x50a94f
mov dword [esp + 0x64], edx
mov ax, word [edi + ecx*2]
cmp ax, word [esi + ecx*2]
je 0x50a95d
mov dword [esp + 0x64], edx
lea eax, [ebx + ebx*8]
lea edx, [eax + edi + 0x23]
mov dword [esp + 0x24], edx
lea edx, [eax + esi + 0x25]
mov dword [esp + 0x1c], edx
lea edx, [eax + edi + 0x25]
mov dword [esp + 0x20], edx
lea edx, [eax + esi + 0x26]
mov dword [esp + 0x38], edx
lea edx, [eax + edi + 0x26]
mov dword [esp + 0x18], edx
lea edx, [eax + esi + 0x27]
mov dword [esp + 0x40], edx
lea edx, [eax + edi + 0x27]
mov dword [esp + 0x3c], edx
lea edx, [eax + esi + 0x28]
mov dword [esp + 0x48], edx
lea edx, [eax + edi + 0x28]
mov dword [esp + 0x44], edx
lea edx, [eax + esi + 0x29]
mov dword [esp + 0x50], edx
lea edx, [eax + edi + 0x29]
mov dword [esp + 0x4c], edx
lea edx, [eax + esi + 0x2a]
mov dword [esp + 0x58], edx
lea edx, [eax + edi + 0x2a]
mov dword [esp + 0x54], edx
mov dl, byte [eax + edi + 0x22]
cmp dl, byte [eax + esi + 0x22]
lea ecx, [eax + esi + 0x23]
lea ebp, [ebx + ebx*8 + 0x24]
mov eax, 1
je 0x50a9e3
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x24]
mov dl, byte [edx]
cmp dl, byte [ecx]
je 0x50a9f1
mov dword [esp + 0x64], eax
mov cl, byte [edi + ebp]
cmp cl, byte [esi + ebp]
je 0x50a9fd
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x20]
mov cl, byte [edx]
mov edx, dword [esp + 0x1c]
cmp cl, byte [edx]
je 0x50aa0f
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx]
mov ecx, dword [esp + 0x38]
cmp dl, byte [ecx]
je 0x50aa21
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x3c]
mov cl, byte [edx]
mov edx, dword [esp + 0x40]
cmp cl, byte [edx]
je 0x50aa33
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x44]
mov dl, byte [ecx]
mov ecx, dword [esp + 0x48]
cmp dl, byte [ecx]
je 0x50aa45
mov dword [esp + 0x64], eax
mov edx, dword [esp + 0x4c]
mov cl, byte [edx]
mov edx, dword [esp + 0x50]
cmp cl, byte [edx]
je 0x50aa57
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x54]
mov dl, byte [ecx]
mov ecx, dword [esp + 0x58]
cmp dl, byte [ecx]
jne 0x50aa6d
mov ecx, dword [esp + 0x64]
test ecx, ecx
je 0x50aac9
mov ebp, dword [esp + 0x30]
test ebx, ebx
jl 0x50aaa5
cmp ebx, eax
jle 0x50aa88
cmp ebx, 2
jne 0x50aaa5
push eax
push 0x80
push 0x40
jmp 0x50aa93
push eax
push 0x100
push 0x200
push eax
push ebp
push 0
call fcn.00844150
push eax
call fcn.00415ed0
add esp, 0x1c
mov word [esi + ebx*2 + 4], 0xffff
or edx, 0xffffffff
mov dword [esi + ebx*8 + 0xa], edx
lea eax, [esi + ebx*8]
lea eax, [ebx + eax + 0x22]
mov dword [esi + ebx*8 + 0xe], edx
or ecx, 0xffffffff
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov byte [eax + 8], cl
inc ebx
cmp ebx, 3
jl 0x50a8c2
mov eax, dword [0xd92224]
test eax, eax
jne 0x50ab12
push 0x3d0001
call fcn.00501d10
push eax
call fcn.00412d80
push 4
lea edx, [esp + 0x68]
push edx
push 0x50ee90
push 0
push eax
push 0x3d0001
call fcn.00501d30
add esp, 0x20
mov dword [0xd92224], 1
mov al, byte [edi]
cmp byte [esi + 1], al
jne 0x50ac50
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x50ac50
test al, al
jne 0x50ab91
mov ax, word [esi + 6]
cmp ax, word [edi + 4]
jne 0x50ac50
push ecx
call fcn.00418f10
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.008443d0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x90289c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0xff
push 0
push eax
push 0
push edx
call fcn.0050f240
mov ax, word [esi + 6]
mov word [esi + 4], ax
or ecx, 0xffffffff
mov dword [esi + 0xa], ecx
add esp, 0x20
mov dword [esi + 0xe], ecx
or edx, 0xffffffff
mov dword [esi + 0x22], edx
mov dword [esi + 0x26], edx
mov byte [esi + 0x2a], dl
jmp 0x50ac50
lea ebx, [esi + 0x12]
xor eax, eax
lea edx, [edi + 0xa]
mov ecx, ebx
jmp 0x50aba0
mov bp, word [ecx]
cmp bp, word [edx]
jne 0x50abb4
inc eax
add ecx, 2
add edx, 2
cmp eax, 4
jl 0x50aba0
cmp eax, 4
jne 0x50ac50
mov eax, dword [esp + 0x2c]
push eax
call fcn.00418f10
mov ecx, dword [esp + 0x14]
push eax
push ecx
call fcn.008443d0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x90289c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
push 0xff
push 0
push eax
push 0
push edx
call fcn.0050f240
mov ax, word [ebx]
mov cx, word [esi + 0x14]
mov dx, word [esi + 0x16]
mov word [esi + 0xa], ax
mov ax, word [esi + 0x18]
mov word [esi + 0xc], cx
mov word [esi + 0xe], dx
mov word [esi + 0x10], ax
mov cl, byte [esi + 0x2b]
mov dl, byte [esi + 0x2c]
mov al, byte [esi + 0x2d]
mov byte [esi + 0x22], cl
mov cl, byte [esi + 0x2e]
mov byte [esi + 0x23], dl
mov dl, byte [esi + 0x2f]
mov byte [esi + 0x24], al
mov al, byte [esi + 0x30]
mov byte [esi + 0x25], cl
mov cl, byte [esi + 0x31]
mov byte [esi + 0x26], dl
mov dl, byte [esi + 0x32]
mov byte [esi + 0x27], al
mov al, byte [esi + 0x33]
mov byte [esi + 0x28], cl
mov byte [esi + 0x29], dl
mov byte [esi + 0x2a], al
add esp, 0x20
mov word [esi + 4], 0xffff
mov edx, dword [esp + 0x14]
lea eax, [esi + 0xa]
mov dword [esp + 0x64], eax
mov dword [esp + 0x1c], eax
mov eax, esi
sub eax, edi
lea ecx, [edi + 0x10]
mov dword [esp + 0x14], eax
mov eax, edi
mov dword [esp + 0x2c], ecx
lea ebx, [edi + 4]
lea ecx, [edi + 0xe]
sub eax, esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x28], 5
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], eax
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
push eax
call fcn.00416000
add esp, 4
test eax, eax
mov dword [esp + 0x10], eax
je 0x50ade5
mov ecx, dword [esp + 0x18]
cmp byte [ecx + edi], 0
jne 0x50ad23
mov ax, word [ebx]
movzx ebp, ax
cmp ebp, 0xffffffff
je 0x50ade5
mov edx, dword [esp + 0x14]
cmp word [edx + ebx], ax
je 0x50ade5
add ebp, 0x460000
push ebp
call fcn.00501d10
push eax
call fcn.00412d80
push 4
lea ecx, [esp + 0x1c]
push ecx
push 0x50a570
push 0
push eax
push ebp
call fcn.00501d30
mov dx, word [ebx]
mov eax, dword [esp + 0x34]
mov word [eax + ebx], dx
mov edx, dword [esp + 0x84]
add esp, 0x20
or ecx, 0xffffffff
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x50ade5
xor ebp, ebp
jmp 0x50ad30
mov eax, dword [esp + 0x28]
mov ebx, dword [ebp*4 + 0x903314]
add eax, ebp
shl eax, 1
mov dx, word [eax + edi]
movzx ecx, dx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x50ada5
cmp ebp, 3
jne 0x50ad78
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x34]
mov ax, word [edx + ecx]
cmp word [ecx], ax
jne 0x50ad70
mov cx, word [ecx + 6]
mov edx, dword [esp + 0x2c]
cmp cx, word [edx]
je 0x50ada5
movzx eax, ax
lea ebx, [ebx + eax*2]
jmp 0x50ad7e
cmp word [eax + esi], dx
je 0x50ada5
push ebx
call fcn.00501d10
push eax
call fcn.00412d80
mov edx, dword [ebp*4 + 0x903324]
push 4
lea ecx, [esp + 0x1c]
push ecx
push edx
push 0
push eax
push ebx
call fcn.00501d30
add esp, 0x20
inc ebp
cmp ebp, 4
jl 0x50ad30
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dx, word [ecx + eax]
mov ecx, dword [esp + 0x20]
mov word [eax], dx
mov dx, word [ecx - 2]
mov word [eax + 2], dx
mov dx, word [ecx]
mov word [eax + 4], dx
mov cx, word [ecx + 2]
mov edx, dword [esp + 0x14]
mov word [eax + 6], cx
mov eax, dword [esp + 0x30]
mov word [edx + eax], 0xffff
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x64]
mov edx, dword [esp + 0x1c]
inc eax
mov ecx, 8
add ebp, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x64], ebp
mov ebp, dword [esp + 0x24]
add eax, ecx
add ebp, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x2c]
add eax, 4
add edx, ecx
add ebp, ecx
add ebx, 2
cmp eax, 0x11
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebx
jl 0x50ac98
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret