Function at 0x10051bc0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
add dword [esi + 0x60], eax
lea ebx, [esi + 0xc]
mov eax, dword [esi + 0x60]
cmp ax, 0xc8
jb 0x10051c52
mov ecx, dword [esi + 0x18]
mov eax, ecx
mov edx, dword [ebx]
sub eax, edx
test eax, 0xfffffff0
jg 0x10051c43
mov eax, dword [esi + 0x1c]
sub ecx, eax
mov ebp, dword [esp + 0x24]
sar ecx, 4
sub ebp, eax
cmp ecx, 0xf4240
jg 0x10051dba
sub edx, eax
add ecx, ecx
mov eax, 0xf4240
sar edx, 4
cmp ecx, eax
cmovg ecx, eax
cmp ecx, edx
jge 0x10051c27
mov ecx, edx
cmp ecx, eax
jg 0x10051dc2
push 1
push ecx
push esi
call fcn.100528e0
mov edi, dword [esi + 0x1c]
add esp, 0xc
add edi, ebp
push esi
call fcn.100513f0
add esp, 4
jmp 0x10051c56
mov edi, dword [esp + 0x24]
push esi
call fcn.100513f0
add esp, 4
jmp 0x10051c56
mov edi, dword [esp + 0x24]
movzx eax, byte [edi + 8]
and eax, 0x3f
cmp eax, 6
je 0x10051c8f
cmp eax, 0x16
je 0x10051d98
cmp eax, 0x26
je 0x10051d73
push edi
push esi
call fcn.10052b70
mov edi, eax
add esp, 8
movzx eax, byte [edi + 8]
and eax, 0x3f
cmp eax, 6
jne 0x10051c62
lea ebx, [esi + 0xc]
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx]
sub eax, edi
mov dword [esp + 0x14], edx
sar eax, 4
movzx ebp, byte [edx + 6]
dec eax
movzx edx, byte [edx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x18]
sub eax, dword [ebx]
sar eax, 4
mov dword [esp + 0x20], edx
cmp eax, edx
jg 0x10051cef
mov eax, dword [esi + 0x10]
sub edi, dword [esi + 0x1c]
mov dword [esp + 0x10], edi
cmp dword [eax + 0xc], 0
jle 0x10051cdc
push esi
call fcn.10059c20
mov edx, dword [esp + 0x24]
lea ebx, [esi + 0xc]
add esp, 4
push 1
push edx
push esi
call fcn.10052020
mov edi, dword [esi + 0x1c]
add esp, 0xc
add edi, dword [esp + 0x10]
mov eax, dword [esi + 0x14]
mov edx, dword [eax + 0xc]
test edx, edx
jne 0x10051d04
push esi
call fcn.10051420
add esp, 4
mov edx, eax
mov cx, word [esp + 0x28]
xor eax, eax
mov word [edx + 0x20], cx
mov ecx, dword [esp + 0x20]
inc ecx
mov word [edx + 0x22], ax
mov eax, dword [esp + 0x14]
shl ecx, 4
add ecx, edi
mov dword [edx], edi
mov dword [edx + 4], ecx
mov dword [esi + 0x14], edx
mov eax, dword [eax + 0x34]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jge 0x10051d4e
sub ebp, eax
nop dword [eax]
mov eax, dword [ebx]
mov byte [eax + 8], 0
add dword [ebx], 0x10
sub ebp, 1
jne 0x10051d40
push edx
mov eax, 4
push esi
mov word [edx + 0x22], ax
call fcn.1005ecb0
mov eax, dword [esi + 0x60]
add esp, 8
sub eax, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [edi]
push dword [eax + 0xc]
push dword [esp + 0x2c]
push edi
push esi
call fcn.10052ff0
mov eax, dword [esi + 0x60]
add esp, 0x10
sub eax, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push dword [edi]
push dword [esp + 0x2c]
push edi
push esi
call fcn.10052ff0
mov eax, dword [esi + 0x60]
add esp, 0x10
sub eax, dword [esp + 0x2c]
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 5
push esi
call fcn.10052af0
push 1
push 0xf4308
push esi
call fcn.100528e0
add esp, 0xc
push str.stack_overflow
push esi
call fcn.10057da0
int3