Function at 0x4017f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1a4
push ebx
push ebp
push esi
push edi
call fcn.00401500
cmp eax, 1
mov dword [esp + 0x24], eax
jge 0x401816
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1a4
ret
mov ebx, dword [esp + 0x1b8]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov al, byte [ebx]
mov ebp, dword [esp + 0x1bc]
mov byte [esp + 0x34], al
lea eax, [ebx + 1]
push 3
mov ecx, dword [eax]
mov dword [esp + 0x39], ecx
mov ecx, dword [ebx + 0xd]
mov edx, dword [eax + 4]
mov dword [esp + 0x45], ecx
mov dword [esp + 0x3d], edx
mov dl, byte [ebx + 0x11]
mov eax, dword [eax + 8]
mov byte [esp + 0x49], dl
mov dword [esp + 0x41], eax
lea eax, [ebx + 0x12]
mov cx, word [ebx + 0x12]
mov word [esp + 0x4a], cx
lea ecx, [esp + 0x38]
mov dl, byte [eax + 2]
mov ax, word [0x40f13c]
mov word [esp + 0x4d], ax
mov word [esp + 0x4f], ax
mov eax, dword [str.0001]
push ecx
push 1
push ebp
mov byte [esp + 0x58], dl
mov dword [esp + 0x5d], eax
call sub.F3CCISAM.dll_xism_rpset
test ax, ax
jl 0x401b01
xor edx, edx
xor eax, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
mov word [esp + 0x30], ax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
jmp 0x4018ce
mov ebx, dword [esp + 0x1b8]
lea ecx, [esp + 0x34]
push 0
push ecx
push ebp
call sub.F3CCISAM.dll_xism_readn
cmp eax, 1
mov dword [esp + 0x1c0], eax
jl 0x401b01
mov cl, byte [ebx]
lea edx, [esp + 0x34]
mov al, byte [edx]
cmp al, cl
jne 0x401b01
mov ecx, 3
lea edi, [ebx + 1]
lea esi, [esp + 0x35]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x401b01
lea eax, [esp + 0x41]
mov ecx, dword [eax]
mov eax, dword [ebx + 0xd]
cmp ecx, eax
jne 0x401b01
mov cl, byte [ebx + 0x11]
lea edx, [esp + 0x45]
mov al, byte [edx]
cmp al, cl
jne 0x401b01
mov ecx, 3
lea edi, [ebx + 0x12]
lea esi, [esp + 0x46]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401b01
xor ecx, ecx
lea eax, [esp + 0x55]
lea esi, [eax - 3]
mov edx, 0x40f13c
mov si, word [esi]
cmp si, word [edx]
jne 0x4019cc
mov dl, byte [eax - 1]
mov esi, 0x40f130
cmp dl, byte [esi]
jne 0x4019c0
xor edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], dx
mov edx, 0x20202020
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edx
mov edx, eax
mov esi, dword [edx]
mov dword [esp + 0x10], esi
mov si, word [edx + 4]
mov word [esp + 0x14], si
mov dl, byte [edx + 6]
mov byte [esp + 0x16], dl
mov edx, dword [eax + 7]
mov dword [esp + 0x28], edx
jmp 0x4019cc
mov dl, byte [eax - 1]
mov esi, 0x40f12c
cmp dl, byte [esi]
je 0x4019db
inc ecx
add eax, 0xe
cmp ecx, 7
jl 0x40194f
jmp 0x4019f7
lea eax, [ecx*8]
sub eax, ecx
lea ecx, [esp + eax*2 + 0x55]
mov edx, dword [esp + eax*2 + 0x55]
mov dword [esp + 0x17], edx
mov al, byte [ecx + 4]
mov byte [esp + 0x1b], al
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x401acd
mov ecx, 0x20
lea esi, [esp + 0x34]
lea edi, [esp + 0x134]
lea edx, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c0]
lea eax, [esp + 0x10]
push ecx
push ebp
push edx
push eax
call fcn.004028d0
mov ecx, 7
lea esi, [esp + 0x144]
lea edi, [esp + 0x44]
add esp, 0x10
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x34]
push 1
push ecx
push 1
push ebp
mov ebx, eax
movsb byte es:[edi], byte [esi]
call sub.F3CCISAM.dll_xism_rpset
test ax, ax
jl 0x401b01
test ebx, ebx
jl 0x4018c7
mov edx, dword [esp + 0x10]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xb4]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0xb4]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov dword [esp + 0xc8], edx
call sub.F3CCISAM.dll_xism_add
cmp eax, 0xfffffff4
je 0x4018c7
test eax, eax
jl 0x401ae6
jmp 0x4018c7
lea edx, [esp + 0x34]
push 1
push edx
push 1
push ebp
call sub.F3CCISAM.dll_xism_rpset
test ax, ax
jl 0x401b01
jmp 0x4018ce
mov eax, dword [esp + 0x24]
push eax
call fcn.00403380
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00403380
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a4
ret