Function at 0x684c13d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x20], edx
and esi, 1
and eax, 2
mov dword [esp + 0x2c], eax
setne al
movzx eax, al
mov dword [esp + 0x1c], esi
add eax, esi
lea eax, [eax + eax*2]
add eax, dword [esp + 0x68]
test esi, esi
mov edx, eax
mov dword [esp + 0x28], eax
lea eax, [ebx + 6]
cmovne eax, ebx
mov ebp, eax
lea eax, [esi + esi]
add eax, esi
lea esi, [ebp + 0x618]
add eax, eax
mov edi, eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x20]
neg edi
add eax, edi
add edi, dword [esp + 0x64]
mov dword [esp + 0x24], eax
lea eax, [edx + edx]
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x30c]
mov dword [esp + 0x34], eax
mov eax, ecx
sar ecx, 1
and eax, 1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
test byte [esp + 0x70], 4
je 0x684c1846
test eax, eax
jne 0x684c17c5
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edi
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.684d78b8
mov eax, dword [esp + 0x14]
lea edx, [ebp + 0x30c]
mov dword [esp + 4], edi
mov dword [esp], edx
mov dword [esp + 8], eax
call fcn.684d78b8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp], esi
lea eax, [edi + edx*2]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
call fcn.684d78b8
lea esi, [ebp + 0x924]
test byte [esp + 0x70], 8
je 0x684c1650
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
lea eax, [edi + eax*4]
test edx, edx
jne 0x684c18de
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esp + 4], eax
lea edi, [eax + edi*2]
mov dword [esp + 8], edx
mov dword [esp + 0x24], edi
imul edi, dword [esp + 0x6c], 0x30c
lea ecx, [esi + edi]
mov dword [esp], ecx
call fcn.684d78b8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esi + edi + 0x30c]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call fcn.684d78b8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
lea eax, [esi + edi + 0x618]
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
call fcn.684d78b8
mov eax, dword [esp + 0x6c]
test eax, eax
jle 0x684c1730
mov edi, dword [esp + 0x1c]
lea eax, [edi*4]
sub edi, eax
mov eax, dword [esp + 0x28]
add eax, edi
mov edi, dword [esp + 0x20]
mov dword [esp + 0x20], ebx
lea ecx, [eax + eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], ebp
add eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
lea esi, [ebp + eax + 0x924]
xor eax, eax
mov ebp, ecx
mov ebx, eax
jmp 0x684c15a5
lea eax, [ebx + 1]
add esi, 0x30c
add edi, dword [esp + 0x14]
cmp dword [esp + 0x6c], eax
je 0x684c15e0
mov ebx, eax
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.684d78b8
mov eax, dword [esp + 0x10]
test eax, eax
je 0x684c1590
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbdc8
mov dword [esp], 0x684fbe02
call fcn.684d2880
jmp 0x684c1590
mov ecx, dword [esp + 0x2c]
mov edi, ebx
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
test ecx, ecx
je 0x684c17b0
mov eax, dword [esp + 0x1c]
mov esi, edi
add esi, 6
test eax, eax
je 0x684c1800
add ebx, 0x924
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
add eax, 2
lea ecx, [edi + edx*8 + 2]
mov edx, dword [eax]
add eax, 8
add ebx, 0x30c
mov dword [ebx - 0x30c], edx
movzx edx, word [eax - 4]
mov word [ebx - 0x308], dx
cmp ecx, eax
jne 0x684c1620
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x6c]
lea edi, [eax - 1]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x684c1923
mov eax, dword [esp + 0x18]
imul edx, dword [esp + 0x6c], 0x30c
imul eax, edi
mov edi, dword [esp + 0x24]
lea ecx, [esi + edx]
mov dword [esp + 0x24], edx
mov dword [esp], ecx
lea edi, [edi + eax*2]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], ecx
mov dword [esp + 4], edi
mov dword [esp + 8], eax
call fcn.684d78b8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edi
lea ecx, [esi + edx + 0x30c]
mov dword [esp + 8], eax
mov dword [esp], ecx
mov dword [esp + 0x3c], ecx
call fcn.684d78b8
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp + 4], edi
lea esi, [esi + edx + 0x618]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.684d78b8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x684c1540
mov edi, dword [esp + 0x6c]
mov eax, dword [esp + 0x60]
lea eax, [eax + edi*8 - 8]
mov edi, dword [eax + 2]
lea edx, [eax + 2]
mov dword [ecx], edi
movzx edi, word [eax + 6]
mov word [ecx + 4], di
mov edi, dword [esp + 0x3c]
mov ecx, dword [eax + 2]
mov dword [edi], ecx
movzx ecx, word [eax + 6]
mov word [edi + 4], cx
mov eax, dword [eax + 2]
mov dword [esi], eax
movzx eax, word [edx + 4]
mov word [esi + 4], ax
mov eax, dword [esp + 0x6c]
test eax, eax
jg 0x684c154c
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x684c17e6
mov esi, dword [esp + 0x6c]
add esi, 5
js 0x684c1640
mov edx, dword [esp + 0x28]
add edx, edx
lea eax, [ebp + edx]
lea ecx, [ebp + edx - 2]
mov esi, esi
lea edi, [edi]
xor edi, edi
movzx edx, word [ecx]
add edi, 1
add eax, 0x30c
add ecx, 0x30c
mov word [eax - 0x30c], dx
mov word [eax - 0x30a], dx
mov word [eax - 0x308], dx
cmp edi, esi
jle 0x684c1762
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x684c1800
mov ebp, dword [esp + 0x6c]
add ebx, 0x924
test ebp, ebp
jg 0x684c160d
jmp 0x684c1640
mov edx, dword [esp + 0x28]
mov esi, edi
add esi, 6
add edx, edx
lea eax, [ebp + edx]
lea ecx, [ebp + edx - 2]
jmp 0x684c1760
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbdc8
mov dword [esp], 0x684fbe02
call fcn.684d2880
jmp 0x684c1468
mov edx, dword [esp + 0x1c]
test edx, edx
jne 0x684c1640
mov esi, dword [esp + 0x6c]
add esi, 5
js 0x684c1640
nop
xor edx, edx
mov ecx, dword [esp + 0x34]
jmp 0x684c1816
add ecx, 0x30c
movzx eax, word [ebp]
add edx, 1
add ebx, 0x30c
mov ebp, ecx
mov word [ebx - 0x30c], ax
mov word [ebx - 0x30a], ax
mov word [ebx - 0x308], ax
cmp edx, esi
jle 0x684c1810
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp], ebp
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.684d78b8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
lea edx, [ebp + 0x30c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.684d78b8
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.684d78b8
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x684c14b1
mov eax, dword [esp + 0x60]
mov edx, dword [eax + 2]
add eax, 2
mov dword [ebp], edx
movzx edx, word [eax + 4]
mov word [ebp + 4], dx
mov edx, dword [eax]
mov dword [ebp + 0x30c], edx
movzx edx, word [eax + 4]
mov word [ebp + 0x310], dx
mov edx, dword [esp + 0x60]
mov edx, dword [edx + 2]
mov dword [esi], edx
movzx eax, word [eax + 4]
mov word [esi + 4], ax
jmp 0x684c14b1
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbdc8
mov dword [esp], 0x684fbe02
mov dword [esp + 0x24], eax
call fcn.684d2880
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbdc8
mov dword [esp], 0x684fbe02
call fcn.684d2880
mov eax, dword [esp + 0x24]
jmp 0x684c14d8
mov dword [esp + 8], 0x50
mov dword [esp + 4], 0x684fbdc8
mov dword [esp], 0x684fbe02
call fcn.684d2880
jmp 0x684c1663