Function at 0x696822c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov ebx, dword [esp + 0x188]
mov ecx, dword [esp + 0x184]
mov byte [esp + 0x49], bl
test ecx, ecx
je 0x69682560
mov eax, dword [esp + 0x184]
mov dword [esp + 0x30], eax
cmp eax, 0xfffe
ja 0x69682570
movzx eax, word [esp + 0x184]
mov word [esp + 0x4a], ax
mov eax, dword [esp + 0x180]
test eax, eax
je 0x69682560
mov eax, dword [esp + 0x180]
cmp word [eax], 0x5a4d
jne 0x69682560
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
mov dword [esp + 0x40], eax
jne 0x69682560
movzx eax, bl
mov dword [esp + 8], 0
mov ecx, eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x180]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.696820d0
sub esp, 0x10
mov ecx, eax
mov dword [esp + 0x2c], eax
test eax, eax
je 0x69682560
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x44], eax
test eax, eax
je 0x69682560
mov edi, dword [ecx + 0x14]
mov dword [esp + 0x20], edi
test edi, edi
je 0x69682560
mov ebp, dword [ecx + 0x24]
cmp eax, 0x28
ja 0x696823c1
mov edx, dword [ecx + 0x18]
cmp edi, edx
cmovae edx, edi
sub ecx, dword [esp + 0x180]
mov eax, edx
shl eax, 8
sub eax, edx
sub eax, ecx
add eax, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov edi, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x1c], eax
test bl, bl
je 0x69682588
add edi, dword [esp + 0x180]
add eax, dword [esp + 0x180]
add ebp, dword [esp + 0x180]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebp
movzx eax, word [esp + 0x4a]
xor ebx, ebx
mov ecx, ebx
mov dword [esp + 0x3c], eax
jmp 0x69682477
add edi, dword [esp + 0x180]
add ebx, dword [esp + 0x180]
cmp dword [esp + 0x2c], ebx
jae 0x69682516
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
add eax, esi
cmp ebx, eax
jae 0x69682516
mov dword [esp], ebx
mov dword [esp + 0x1c], ecx
call sub.msvcrt.dll_strlen
mov ecx, dword [esp + 0x1c]
mov esi, eax
lea eax, [eax + 1]
cmp eax, 0xff
jbe 0x69682620
mov eax, dword [esp + 0x2c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x20], eax
lea esi, [esi]
mov eax, dword [esp + 0x20]
add ecx, 1
cmp ecx, eax
jae 0x69682560
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, word [eax + ecx*2]
mov ebx, dword [edi + eax*4]
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x69682468
mov eax, dword [esp + 0x34]
cmp byte [esp + 0x49], 0
mov edi, dword [eax + ecx*4]
jne 0x69682410
mov eax, dword [esp + 0x40]
test eax, eax
je 0x69682610
movzx ebp, word [eax + 6]
mov esi, eax
test ebp, ebp
je 0x69682610
movzx eax, word [eax + 0x14]
mov dword [esp + 0x38], ebx
lea eax, [esi + eax + 0x18]
xor esi, esi
mov edx, eax
lea esi, [esi]
mov ebx, dword [edx + 0xc]
cmp edi, ebx
jb 0x696824e2
add ebx, dword [edx + 0x10]
cmp edi, ebx
jb 0x696825f8
add esi, 1
add edx, 0x28
cmp ebp, esi
jne 0x696824d0
mov ebx, dword [esp + 0x38]
xor edi, edi
xor esi, esi
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6968250a
add edx, dword [eax + 0x10]
cmp ebx, edx
jb 0x696825e0
add esi, 1
add eax, 0x28
cmp ebp, esi
jne 0x696824f8
xor ebx, ebx
cmp dword [esp + 0x30], 0xffff
jbe 0x6968253f
mov eax, dword [esp + 0x184]
mov dword [esp + 4], edi
mov dword [esp + 0x38], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 0x38]
test eax, eax
je 0x69682552
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
add eax, 1
cmp eax, edi
jne 0x69682468
mov eax, ebx
jmp 0x69682562
xor eax, eax
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
cmp byte [eax], 0x23
je 0x696826b3
mov edx, 0xffffffff
mov word [esp + 0x4a], dx
jmp 0x69682307
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x696827bc
movzx ebx, word [ecx + 6]
test ebx, ebx
je 0x696827bc
movzx eax, word [ecx + 0x14]
xor esi, esi
lea eax, [ecx + eax + 0x18]
mov edx, eax
lea esi, [esi]
mov ecx, dword [edx + 0xc]
cmp edi, ecx
jb 0x696825c2
add ecx, dword [edx + 0x10]
cmp edi, ecx
jb 0x696826e2
add esi, 1
add edx, 0x28
cmp ebx, esi
jne 0x696825b0
mov dword [esp + 0x34], 0
jmp 0x696826f3
add ebx, dword [eax + 0x14]
sub ebx, dword [eax + 0xc]
add ebx, dword [esp + 0x180]
jmp 0x69682516
add edi, dword [edx + 0x14]
mov ebx, dword [esp + 0x38]
sub edi, dword [edx + 0xc]
add edi, dword [esp + 0x180]
jmp 0x696824f2
xor ebx, ebx
xor edi, edi
jmp 0x69682516
lea edi, [esp + 0x60]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x1c]
xor eax, eax
jmp 0x69682648
cmp esi, ebp
je 0x6968245a
movzx edx, byte [edi + eax]
mov ebp, eax
add eax, 1
cmp dl, 0x2e
jne 0x69682640
add ebx, eax
mov byte [esp + ebp + 0x60], 0
cmp byte [ebx], 0x23
je 0x6968277c
mov eax, dword [esp + 0x184]
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], ecx
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
mov ecx, dword [esp + 0x1c]
test eax, eax
jne 0x6968245a
mov esi, ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
mov ecx, dword [esp + 0x4c]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.696822c0
sub esp, 0xc
jmp 0x69682562
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll_atoi
lea edx, [eax - 1]
cmp edx, 0xfffd
ja 0x69682579
mov word [esp + 0x4a], ax
mov dword [esp + 0x184], eax
mov dword [esp + 0x30], eax
jmp 0x69682307
add edi, dword [edx + 0x14]
sub edi, dword [edx + 0xc]
add edi, dword [esp + 0x180]
mov dword [esp + 0x34], edi
mov edi, dword [esp + 0x1c]
mov edx, eax
xor esi, esi
lea esi, [esi]
nop
mov ecx, dword [edx + 0xc]
cmp edi, ecx
jb 0x6968270e
add ecx, dword [edx + 0x10]
cmp edi, ecx
jb 0x6968274d
add esi, 1
add edx, 0x28
cmp ebx, esi
jne 0x69682700
mov dword [esp + 0x28], 0
xor ecx, ecx
lea esi, [esi]
mov edx, dword [eax + 0xc]
cmp ebp, edx
jb 0x69682736
add edx, dword [eax + 0x10]
cmp ebp, edx
jb 0x69682764
add ecx, 1
add eax, 0x28
cmp ebx, ecx
jne 0x69682728
mov dword [esp + 0x24], 0
jmp 0x696823f8
mov ecx, dword [esp + 0x1c]
add ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0xc]
add ecx, dword [esp + 0x180]
mov dword [esp + 0x28], ecx
jmp 0x69682720
mov edx, dword [eax + 0x14]
add edx, ebp
sub edx, dword [eax + 0xc]
add edx, dword [esp + 0x180]
mov dword [esp + 0x24], edx
jmp 0x696823f8
cmp word [esp + 0x4a], 0xffff
lea eax, [ebx + 1]
je 0x6968245a
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call sub.msvcrt.dll_atoi
mov ecx, dword [esp + 0x1c]
lea edx, [eax - 1]
cmp edx, 0xfffe
ja 0x6968245a
movzx esi, word [esp + 0x4a]
cmp esi, eax
jne 0x6968245a
jmp 0x6968268b
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 0
jmp 0x69682740