Function at 0x515db0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b4
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
mov ebx, ecx
mov byte [esp + 0xb8], 0
mov ecx, 0x40
lea edi, [esp + 0xb9]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movzx eax, byte [esi + 1]
dec eax
cmp eax, 0xf
ja case.0x515df4.3
movzx eax, byte [eax + 0x5161f0]
jmp dword [eax*4 + 0x5161cc]
mov ecx, ebx
call fcn.00510b30
mov cl, byte [esi + 0x26]
push 0x20
mov byte [ebx + 0x710], cl
add esi, 6
push esi
add ebx, 0x6f0
push ebx
call fcn.0065cfb0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 0x4a4]
call fcn.0050f1a0
xor edi, edi
cmp word [esi + 6], di
jbe 0x515e84
lea edx, [esi + 8]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
push 0x70
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0065c820
mov edx, dword [esp + 0x1c]
push edx
lea eax, [ebx + 0x4a4]
push eax
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0xcc], edi
call fcn.00514b80
add dword [esp + 0x28], 0x6c
movzx ecx, word [esi + 6]
add esp, 0x18
inc edi
cmp edi, ecx
jl 0x515e45
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 0xa]
dec eax
je 0x515ea2
sub eax, 2
jne 0x515eb6
lea ecx, [ebx + 0x498]
call fcn.005dd9b0
mov edx, dword [esi + 6]
mov dword [ebx + 0x714], edx
xor edi, edi
cmp word [esi + 0xb], di
jbe 0x515ee5
lea eax, [esi + 0xd]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.005137a0
mov ecx, dword [esp + 0x10]
movzx edx, word [esi + 0xb]
inc edi
add ecx, 0x26
cmp edi, edx
mov dword [esp + 0x10], ecx
jl 0x515ec5
mov al, byte [esi + 0xa]
cmp al, 2
jb case.0x515df4.3
cmp al, 3
ja case.0x515df4.3
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
add esi, 6
lea eax, [ebx + 0x4a4]
push esi
push eax
call fcn.00510fd0
mov al, byte [ebx + 0x710]
add esp, 8
cmp al, 2
jne 0x515f51
push esi
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0050abe0
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x49c]
je 0x515f51
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [ebx + 0x498]
call fcn.00479ef0
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esi + 6]
push eax
lea eax, [ebx + 0x4a4]
push eax
call fcn.0050d170
mov edi, eax
add esp, 8
test edi, edi
je 0x515fa9
mov cl, byte [esi + 0x26]
mov byte [edi + 0x25], cl
mov edx, dword [esi + 0x29]
push 0x20
lea eax, [esi + 0x4d]
push eax
lea ecx, [edi + 0x4c]
push ecx
mov dword [edi + 0x28], edx
call fcn.0065cfb0
push 0x20
lea edx, [esi + 0x2d]
push edx
add edi, 0x2c
push edi
call fcn.0065cfb0
add esp, 0x18
cmp byte [ebx + 0x710], 2
jne 0x515fdc
lea eax, [esi + 6]
push eax
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0050abe0
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 0x49c]
je 0x515fdc
mov cl, byte [esi + 0x26]
mov byte [eax + 0x10], cl
mov dx, word [esi + 0x27]
mov word [eax + 0x12], dx
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 0x4a]
xor ecx, ecx
sub eax, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x24], cl
mov byte [esp + 0x20], cl
mov word [esp + 0x22], cx
je 0x516122
dec eax
jne case.0x515df4.3
cmp byte [ebx + 0x710], 2
jne case.0x515df4.3
push 0x20
lea eax, [esi + 6]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0065cfb0
mov ax, word [esi + 0x4d]
mov dx, word [esi + 0x4b]
mov ecx, dword [esi + 0x26]
add esp, 0xc
mov word [esp + 0x22], ax
lea eax, [esi + 0x2a]
push eax
mov word [esp + 0x48], dx
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, ebx
mov byte [esp + 0x2c], 1
mov dword [esp + 0x20], eax
call fcn.0050ab50
mov edi, dword [esp + 0x10]
cmp edi, dword [ebx + 0x49c]
je 0x5160e2
mov eax, dword [esp + 0x14]
push eax
lea ecx, [edi + 0x14]
push ecx
call fcn.0065dac0
add esp, 8
test eax, eax
lea ecx, [esp + 0x18]
jne 0x5160b5
mov edx, dword [edi + 8]
push edi
mov dword [esp + 0x1c], edx
mov eax, dword [edi + 0xc]
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00513720
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [edi + 4]
mov edx, dword [edi + 8]
mov dword [esp + 0x18], edx
mov eax, dword [edi + 0xc]
push edi
inc eax
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00513720
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov esi, dword [esi + 0x26]
mov edi, dword [edi + 4]
mov dword [esp + 0x18], esi
cmp esi, dword [edi + 8]
jne 0x5160fb
mov edx, dword [edi + 0xc]
inc edx
mov dword [esp + 0x1c], edx
jmp 0x516103
mov dword [esp + 0x1c], 0
push edi
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call fcn.00513720
mov ecx, ebx
call fcn.0050ec10
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [esi + 6]
push ecx
lea edx, [esp + 0xbc]
push 0x7114c4
push edx
call fcn.0065c60e
mov eax, dword [esi + 0x26]
add esp, 0xc
push eax
push 0x13
call fcn.004acbb0
mov ecx, eax
call fcn.004acab0
test al, al
jne case.0x515df4.3
mov ecx, dword [0x75c678]
mov edx, dword [esi + 0x26]
push 1
push ecx
push edx
push 0x13
lea eax, [esp + 0xc8]
push eax
mov ecx, 0x77e198
call fcn.0046ce90
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, 0x77e198
call fcn.00467c80
mov ecx, dword [0x77e2a0]
test ecx, ecx
je case.0x515df4.3
push esi
call fcn.0051af30
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
mov ecx, 0x77e198
call fcn.00467d50
mov ecx, dword [0x77e2a4]
test ecx, ecx
je case.0x515df4.3
push esi
call fcn.0051b0d0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8