Function at 0x401b20
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x168
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call fcn.00401500
cmp eax, 1
mov dword [esp + 0x2c], eax
jge 0x401b48
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x168
ret
mov ebp, dword [esp + 0x17c]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x78]
rep stosd dword es:[edi], eax
mov al, byte [ebp]
push 3
mov byte [esp + 0x7c], al
lea eax, [ebp + 1]
mov dword [esp + 0x34], ebx
mov ecx, dword [eax]
mov dword [esp + 0x7d], ecx
mov ecx, dword [ebp + 0xd]
mov edx, dword [eax + 4]
mov dword [esp + 0x89], ecx
mov cl, byte [0x40f14a]
mov dword [esp + 0x81], edx
mov eax, dword [eax + 8]
mov dl, byte [ebp + 0x11]
mov dword [esp + 0x85], eax
mov ax, word [0x40f148]
mov word [esp + 0x8e], ax
mov ax, word [0x40f13c]
mov word [esp + 0x91], ax
mov word [esp + 0x93], ax
lea eax, [esp + 0x7c]
mov byte [esp + 0x90], cl
mov ecx, dword [esp + 0x184]
mov byte [esp + 0x8d], dl
mov edx, dword [str.0001]
push eax
push 1
push ecx
mov dword [esp + 0xa1], edx
call sub.F3CCISAM.dll_xism_rpset
test ax, ax
jl 0x401fe7
mov eax, dword [esp + 0x180]
lea edx, [esp + 0x78]
push 0
push edx
push eax
call sub.F3CCISAM.dll_xism_readn
cmp eax, 1
mov dword [esp + 0x184], eax
jl 0x401fe7
lea ecx, [esp + 0x78]
mov dl, byte [ecx]
mov cl, byte [ebp]
cmp dl, cl
jne 0x401fe7
mov ecx, 3
lea edi, [ebp + 1]
lea esi, [esp + 0x79]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x401fe7
lea ecx, [esp + 0x85]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xd]
cmp edx, ecx
jne 0x401fe7
lea ecx, [esp + 0x89]
mov dl, byte [ecx]
mov cl, byte [ebp + 0x11]
cmp dl, cl
jne 0x401fe7
lea ecx, [esp + 0x8a]
add ebp, 0x12
mov dl, byte [ecx]
mov cl, byte [ebp]
cmp dl, cl
jne 0x401fe7
mov dword [esp + 0x34], 0
lea ebp, [esp + 0x96]
jmp 0x401c97
mov eax, dword [esp + 0x184]
mov dl, byte [ebp]
mov ecx, 0x40f144
cmp dl, byte [ecx]
jne 0x401cff
mov dl, byte [ebp + 3]
lea ecx, [ebp + 3]
mov eax, 0x40f140
cmp dl, byte [eax]
jne 0x401cf2
xor eax, eax
mov ecx, 0x20202020
mov dword [esp + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
xor edx, edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x28], dl
jmp 0x401f94
mov dword [esp + 0x30], 0
jmp 0x401f94
cmp dword [esp + 0x30], 1
jne 0x401f94
mov ecx, 3
mov edi, ebp
lea esi, [esp + 0x38]
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401dcd
push eax
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.004028d0
add esp, 0x10
test eax, eax
jl 0x401d9a
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xf8]
mov esi, dword [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 3]
mov ecx, dword [ebp + 3]
mov dword [esp + 0xf8], ecx
mov ecx, dword [ebp + 0xa]
mov dx, word [eax + 4]
mov dword [esp + 0x104], ecx
mov word [esp + 0xfc], dx
lea edx, [esp + 0xf8]
mov al, byte [eax + 6]
push edx
push esi
mov byte [esp + 0x106], al
call sub.F3CCISAM.dll_xism_add
cmp eax, 0xfffffff4
je 0x401d9a
test eax, eax
jl 0x401fd0
xor eax, eax
mov ecx, 0x20202020
mov dword [esp + 0x10], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x28], dl
jmp 0x401dd2
test bx, bx
jne 0x401e4f
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x38], eax
lea edi, [esp + 0x44]
mov dx, word [ecx]
mov dword [esp + 0x3c], eax
mov word [esp + 0x40], ax
mov word [esp + 0x38], dx
mov al, byte [ecx + 2]
mov ecx, 0xc
mov byte [esp + 0x3a], al
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [ebp + 3]
lea esi, [esp + 0x44]
stosw word es:[edi], ax
mov edx, dword [ecx]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], edx
mov ebx, 1
mov ax, word [ecx + 4]
mov word [esp + 0x48], ax
xor eax, eax
mov cl, byte [ecx + 6]
mov byte [esp + 0x4a], cl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x10]
mov edx, ecx
mov eax, dword [ebp + 0xa]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x24], eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x401f17
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x44]
lea esi, [esp + 0x44]
rep stosd dword es:[edi], eax
lea ecx, [ebp + 3]
stosw word es:[edi], ax
mov edx, dword [ecx]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], edx
mov al, byte [ecx + 4]
or ecx, 0xffffffff
mov byte [esp + 0x48], al
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x17]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0x10], 0x5c
jne 0x401f17
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x44]
lea esi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0xb
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
lea edi, [esp + 0x48]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
lea edi, [esp + 0x48]
mov dword [esp + 0x14], ecx
lea esi, [esp + 0x48]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov edx, ecx
lea eax, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004030b0
add esp, 8
mov ecx, dword [esp + 0x184]
mov edx, dword [esp + 0x180]
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004028d0
add esp, 0x10
test eax, eax
jl 0x401f94
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x2c]
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xf8]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xfc], eax
lea eax, [esp + 0xf8]
mov dword [esp + 0xf8], edx
mov edx, dword [esp + 0x24]
push eax
push esi
mov dword [esp + 0x108], ecx
mov dword [esp + 0x10c], edx
call sub.F3CCISAM.dll_xism_add
cmp eax, 0xfffffff4
je 0x401f94
test eax, eax
jl 0x401fd0
mov eax, dword [esp + 0x34]
add ebp, 0xe
inc eax
cmp eax, 7
mov dword [esp + 0x34], eax
jl 0x401c90
mov edx, dword [esp + 0x180]
lea ecx, [esp + 0x78]
push 1
push ecx
push 1
push edx
call sub.F3CCISAM.dll_xism_rpset
test ax, ax
jl 0x401fe7
mov ebp, dword [esp + 0x17c]
jmp 0x401bf5
push esi
call fcn.00403380
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret
mov eax, dword [esp + 0x2c]
push eax
call fcn.00403380
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x168
ret