Function at 0x499b56
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov eax, ecx
mov ebx, edx
push esi
push edi
mov dword [ebp - 0x20], ebx
mov edi, dword [eax]
mov ecx, dword [eax + 0x204]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], ecx
test byte [edi + 0x18], 1
mov dword [ebp - 8], edi
je 0x499b84
xor eax, eax
jmp 0x49a0c9
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebp + 8]
shl edx, 6
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
mov eax, dword [edx + ecx + 0x28]
mov esi, dword [edx + ecx + 0x18]
mov dword [ebp - 0x18], eax
xor eax, eax
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x30], eax
je 0x499bb2
cmp dword [ebp + 0x10], 0
je 0x499bbd
jmp 0x499b7d
cmp dword [ebp + 0x10], 0
je 0x499bbd
cmp word [ecx], ax
jg 0x499b7d
mov eax, dword [esi + 0x48]
test eax, eax
je 0x499bca
cmp dword [ebx + 0x48], 0
jne 0x499b7d
cmp dword [esi + 0x4c], 0
jne 0x499b7d
cmp dword [ebx + 0x44], 0
je 0x499bda
test eax, eax
jne 0x499b7d
mov edi, dword [esi + 0x28]
xor ecx, ecx
cmp word [edi], cx
mov ecx, dword [ebp - 0xc]
je 0x499b7d
test byte [esi + 6], 1
jne 0x499b7d
test eax, eax
je 0x499c03
xor edi, edi
inc edi
cmp word [ecx], di
jg 0x499b7d
cmp dword [ebp + 0xc], 0
jne 0x499b7d
mov di, word [ebx + 6]
xor ecx, ecx
inc ecx
and di, cx
mov ecx, dword [ebp - 0xc]
mov word [ebp - 2], di
je 0x499c20
cmp dword [ebp + 0x10], 0
jne 0x499b7d
cmp dword [ebx + 0x38], 0
mov edi, dword [ebp - 8]
je 0x499c33
cmp dword [esi + 0x38], 0
jne 0x499b7d
cmp dword [ebp + 0xc], 0
je 0x499c43
cmp dword [esi + 0x38], 0
jne 0x499b7d
test eax, eax
je 0x499c63
cmp dword [ebx + 0x2c], 0
jne 0x499b7d
test eax, eax
je 0x499c63
mov ax, word [ebp - 2]
test ax, ax
je 0x499c67
jmp 0x499b7d
mov ax, word [ebp - 2]
test byte [edx + ecx + 0x24], 0x20
jne 0x499b7d
cmp dword [esi + 0x3c], 0
je 0x499d1c
cmp dword [esi + 0x38], 0
jne 0x499b7d
cmp dword [ebp + 0xc], 0
jne 0x499b7d
test ax, ax
jne 0x499b7d
xor eax, eax
inc eax
cmp word [ecx], ax
jne 0x499b7d
mov ecx, esi
test byte [ecx + 6], 5
jne 0x499b7d
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x499cc5
cmp byte [ecx + 4], 0x71
jne 0x499b7d
mov eax, dword [ecx + 0x28]
xor edi, edi
inc edi
cmp word [eax], di
mov edi, dword [ebp - 8]
jl 0x499b7d
mov eax, dword [esi]
mov ecx, dword [ecx]
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x499b7d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x499ca7
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x499d19
cmp dword [eax], ecx
jle 0x499d19
mov eax, dword [eax + 8]
add eax, 0xe
xor edx, edx
cmp word [eax], dx
mov edx, dword [ebp - 0x10]
je 0x499b7d
mov edi, dword [ebx + 0x38]
inc ecx
add eax, 0x14
cmp ecx, dword [edi]
mov edi, dword [ebp - 8]
jl 0x499cfd
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x204], eax
xor eax, eax
push eax
push eax
push eax
push 0x15
pop edx
call fcn.0048a657
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x204], ecx
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x499dbb
mov eax, dword [ebx + 0x3c]
mov edx, ebx
mov edi, dword [ebx + 0x38]
mov esi, dword [ebx + 0x48]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], eax
xor eax, eax
push eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x48], eax
call fcn.00485bb5
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebx + 0x48], esi
xor esi, esi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x28], ecx
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x44], esi
test eax, eax
jne 0x499d93
mov eax, dword [ebp - 0x24]
jmp 0x499d9c
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x3c], edx
mov dword [eax + 0x44], esi
mov edi, dword [ebp - 8]
mov dword [ebx + 0x3c], eax
cmp byte [edi + 0x36], 0
jne 0x49a0c6
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x499d4f
jmp 0x499dbe
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + ecx + 0x18]
mov esi, edx
mov dword [ebp - 0x34], edx
mov edx, dword [eax + ecx + 8]
mov ecx, edi
mov dword [ebp - 0x24], esi
call fcn.00464d37
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + eax + 0xc]
call fcn.00464d37
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx + 0x10]
mov ecx, edi
call fcn.00464d37
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov dword [eax + edx + 8], ecx
mov dword [eax + edx + 0xc], ecx
mov dword [eax + edx + 0x10], ecx
mov dword [eax + edx + 0x18], ecx
mov ecx, dword [eax + edx + 0x14]
test ecx, ecx
je 0x499e5d
movzx eax, word [ecx + 0x20]
cmp ax, word [ebp - 0x30]
jne 0x499e4d
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x14]
mov eax, dword [eax + 0x1b0]
test eax, eax
cmovne ebx, eax
mov eax, ebx
mov eax, dword [eax + 0x224]
mov dword [ecx + 0x48], eax
mov eax, ebx
mov ebx, dword [ebp - 0x20]
mov dword [eax + 0x224], ecx
jmp 0x499e52
dec eax
mov word [ecx + 0x20], ax
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov dword [eax + edx + 0x14], ecx
jmp 0x499e5f
xor ecx, ecx
mov byte [ebp - 1], cl
mov ecx, dword [esi + 0x28]
mov dword [ebp - 0x30], ecx
movsx edx, word [ecx]
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], ecx
test ecx, ecx
je 0x499e87
mov edi, dword [ebp - 0xc]
mov al, byte [eax + edi + 0x24]
mov edi, dword [ebp - 8]
mov byte [ebp - 1], al
jmp 0x499ea9
xor eax, eax
xor edx, edx
push eax
push eax
mov ecx, edi
call fcn.0048d865
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebx + 0x28], ecx
test ecx, ecx
je 0x49a0bc
mov edx, dword [ebp - 0x14]
xor eax, eax
inc eax
cmp edx, eax
jle 0x499ed9
mov eax, dword [ebp + 8]
inc eax
push eax
lea eax, [edx - 1]
mov edx, ecx
push eax
mov ecx, edi
call fcn.0048d783
pop ecx
pop ecx
mov ecx, eax
mov dword [ebx + 0x28], ecx
cmp byte [edi + 0x36], 0
mov dword [ebp - 0x1c], ecx
jne 0x49a0bc
mov edx, dword [ebp - 0x14]
test edx, edx
jle 0x499f34
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x30]
add edi, 8
mov ebx, dword [ebp - 8]
add esi, 8
add edi, ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], edi
mov edx, dword [edi + 0x28]
mov ecx, ebx
call fcn.0048d701
push 0x10
pop ecx
push 0x40
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
push eax
push esi
call fcn.005278d0
mov edi, dword [ebp - 0x28]
add esi, 0x40
add edi, 0x40
mov dword [ebp - 0x2c], esi
add esp, 0xc
mov dword [ebp - 0x28], edi
dec dword [ebp - 0x14]
jne 0x499ef4
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
mov dl, byte [ebp - 1]
mov byte [eax + ecx + 0x24], dl
xor eax, eax
mov ecx, dword [ebx]
mov edx, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
cmp dword [ecx], eax
jle 0x499f92
mov dword [ebp - 0x1c], eax
mov esi, dword [ecx + 8]
cmp dword [esi + eax + 4], 0
jne 0x499f81
mov esi, dword [esi + eax + 8]
test esi, esi
je 0x499f81
mov edx, esi
mov ecx, edi
call fcn.0046501f
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + edx + 4], eax
mov eax, edx
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
inc edx
add eax, 0x14
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x1c], eax
cmp edx, dword [ecx]
jl 0x499f51
mov esi, dword [ebp - 0x24]
push dword [esi]
mov edx, dword [ebx]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.00499a71
cmp dword [ebp + 0xc], 0
pop ecx
pop ecx
je 0x499fcc
push dword [esi]
mov edx, dword [ebx + 0x30]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.00499a71
push dword [esi]
mov edx, dword [ebx + 0x34]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.004999be
add esp, 0x10
mov dword [ebx + 0x34], eax
mov eax, dword [esi + 0x38]
test eax, eax
je 0x499fdd
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [esi + 0x38], eax
jmp 0x499ff4
mov edx, dword [ebx + 0x38]
test edx, edx
je 0x499ff2
push dword [esi]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.00499a71
pop ecx
pop ecx
xor eax, eax
mov edx, dword [esi + 0x2c]
test edx, edx
je 0x49a00d
push eax
push eax
mov ecx, edi
call fcn.004856ec
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
jmp 0x49a012
mov ecx, eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 0
je 0x49a064
mov eax, dword [ebx + 0x2c]
mov edx, eax
mov dword [ebx + 0x2c], ecx
mov ecx, edi
mov dword [ebx + 0x34], eax
push dword [esi]
push dword [ebp - 0x18]
call fcn.004999be
mov dword [ebx + 0x34], eax
mov ecx, edi
mov edx, dword [esi + 0x34]
xor eax, eax
push eax
push eax
call fcn.004856ec
mov edx, dword [ebx + 0x34]
mov ecx, edi
push eax
call fcn.00485300
add esp, 0x14
mov dword [ebx + 0x34], eax
mov edx, dword [esi + 0x30]
xor eax, eax
mov ecx, edi
push eax
call fcn.004858e9
pop ecx
mov dword [ebx + 0x30], eax
jmp 0x49a088
push dword [esi]
mov edx, dword [ebx + 0x2c]
mov ecx, edi
push dword [ebp - 0x18]
call fcn.004999be
push dword [ebp - 0x2c]
mov edx, eax
mov dword [ebx + 0x2c], eax
mov ecx, edi
call fcn.00485300
add esp, 0xc
mov dword [ebx + 0x2c], eax
mov ax, word [esi + 6]
xor ecx, ecx
inc ecx
and ax, cx
xor ecx, ecx
or word [ebx + 6], ax
mov eax, dword [esi + 0x48]
test eax, eax
je 0x49a0a5
mov dword [ebx + 0x48], eax
mov dword [esi + 0x48], ecx
mov ebx, dword [ebx + 0x3c]
mov esi, dword [esi + 0x3c]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esi
test ebx, ebx
jne 0x499e5f
mov edx, dword [ebp - 0x34]
mov ecx, edi
call fcn.004970a6
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret