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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41cc5a
push eax
mov eax, 0x1260
mov dword fs:[0], esp
call fcn.004099f0
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1274], 0
call fcn.00416a6e
mov eax, dword [esp + 0x127c]
push 0
push 0x40
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x1280], 1
call fcn.00416ae3
test eax, eax
je 0x406309
push 0
push 0x42466c
push str.FILEOP
push str.CapLoghistory.ini
call fcn.00406e50
add esp, 0x10
or ebx, 0xffffffff
lea ecx, [esp + 0x264]
mov dword [esp + 0x2c], eax
push ebx
push 0
call fcn.004068b0
mov eax, dword [0x4280fc]
xor ecx, ecx
push 2
mov byte [esp + 0x1278], 2
mov cx, word [eax + 6]
mov edx, dword [eax + 2]
push ecx
push edx
lea ecx, [esp + 0x270]
call fcn.004068f0
test eax, eax
je 0x406066
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x3c]
lea edx, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov edi, str.SNDFILELOG
mov ecx, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x1e
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x54]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4280fc]
add ecx, 0x14
push ecx
push edx
call fcn.00409360
add esp, 0xc
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x264]
push 0x38
push eax
call fcn.00406b20
cmp eax, 0x38
jne 0x406066
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x74]
push 0x65
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x26c]
stosb byte es:[edi], al
call fcn.00406a90
cmp eax, 0x65
jne 0x406066
cmp byte [esp + 0x74], 0x64
je 0x4060ae
lea ecx, [esp + 0x14]
call fcn.00416e13
lea ecx, [esp + 0x264]
mov byte [esp + 0x1274], 1
call fcn.004068c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1274], 0
call fcn.00416aa0
lea ecx, [esp + 0x127c]
mov dword [esp + 0x1274], ebx
call fcn.00415d3c
xor eax, eax
jmp 0x406336
mov eax, dword [0x424a3c]
push ebp
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea edx, [esp + 0x10]
mov bl, 4
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x127c], bl
call fcn.00416cc6
test eax, eax
je 0x406292
lea ecx, [esp + 0x10]
call fcn.004153aa
lea ecx, [esp + 0x10]
call fcn.0041535e
push 0x4246f4
lea ecx, [esp + 0x14]
call fcn.00414fc5
mov esi, eax
test esi, esi
jl 0x40627c
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00414f2b
mov eax, dword [eax]
push eax
call fcn.00409b7a
add esp, 4
lea ecx, [esp + 0x38]
mov ebp, eax
call fcn.00415d3c
cmp ebp, dword [esp + 0x30]
jbe 0x40627c
inc esi
lea ecx, [esp + 0x3c]
push esi
push ecx
lea ecx, [esp + 0x18]
call fcn.00414df6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x127c], 5
call fcn.00415e29
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1278], bl
call fcn.00415d3c
lea ecx, [esp + 0x14]
call fcn.004153aa
push 0x4246f0
lea ecx, [esp + 0x18]
call fcn.00414fc5
mov esi, eax
test esi, esi
jl 0x40627c
mov ecx, 0x61
xor eax, eax
lea edi, [esp + 0xe0]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push edx
lea ecx, [esp + 0x1c]
stosb byte es:[edi], al
call fcn.00414f2b
mov eax, dword [eax]
push 0x13
push eax
lea eax, [esp + 0x15b]
push eax
call fcn.00409360
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00415d3c
mov eax, dword [0x4280fc]
mov dword [esp + 0xe0], ebp
push 0x1e
lea edx, [esp + 0x133]
mov ecx, dword [eax + 0x82]
add eax, 0xb2
push eax
push edx
mov dword [esp + 0x15b], ecx
call fcn.00409360
add esp, 0xc
inc esi
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push esi
push eax
call fcn.00414df6
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x127c], 6
call fcn.00415e29
lea ecx, [esp + 0x34]
mov byte [esp + 0x1278], bl
call fcn.00415d3c
mov ecx, dword [esp + 0x14]
push 0xff
lea edx, [esp + 0x16b]
push ecx
push edx
call fcn.00409360
add esp, 0xc
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x268]
push 0x187
push eax
call fcn.00406b20
cmp eax, 0x187
jne 0x406292
push ebp
push 0x42466c
push str.FILEOP
push str.CapLoghistory.ini
call fcn.00406ef0
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00416cc6
test eax, eax
jne 0x4060db
lea ecx, [esp + 0x18]
call fcn.00416e13
mov eax, dword [esp + 0x1284]
pop ebp
test eax, eax
je 0x4062d3
mov ecx, 0x61
xor eax, eax
lea edi, [esp + 0xdc]
lea edx, [esp + 0xdc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x187
push edx
lea ecx, [esp + 0x26c]
stosb byte es:[edi], al
call fcn.00406b20
lea ecx, [esp + 0x10]
mov byte [esp + 0x1274], 3
call fcn.00415d3c
lea ecx, [esp + 0xc]
mov byte [esp + 0x1274], 2
call fcn.00415d3c
lea ecx, [esp + 0x264]
mov byte [esp + 0x1274], 1
call fcn.004068c0
lea ecx, [esp + 0x14]
mov byte [esp + 0x1274], 0
call fcn.00416aa0
lea ecx, [esp + 0x127c]
mov dword [esp + 0x1274], 0xffffffff
call fcn.00415d3c
mov eax, 1
mov ecx, dword [esp + 0x126c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x126c
ret