Function at 0x4055c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x166c
call fcn.0040ebc0
mov eax, dword [0x410014]
xor eax, esp
mov dword [esp + 0x1668], eax
cmp byte [0x4104f5], 0
push ebx
push esi
push edi
jne 0x405936
mov ecx, dword [0x4104ec]
lea edx, [esp + 0x14]
push edx
push 0x401148
mov eax, dword [ecx]
call dword [eax + 0x60]
test eax, eax
je 0x405908
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, 0xa
jb 0x405903
lea edx, [esp + 0x18]
mov dword [esp + 0x18], 0xa
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x28]
push edx
push 0
call dword [eax + 4]
test eax, eax
je 0x40593b
cmp dword [esp + 0x18], 0xa
jne 0x40593b
mov ecx, dword [esp + 0x24]
call fcn.00403ee0
mov edi, eax
lea eax, [esp + 0x30]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wstat64i32]
add esp, 8
cmp eax, 0xffffffff
je 0x4058ff
mov ecx, dword [esp + 0x28]
xor eax, eax
cmp ecx, dword [esp + 0x50]
jne 0x4058ff
cmp eax, dword [esp + 0x54]
jne 0x4058ff
movzx ecx, word [esp + 0x2c]
mov eax, dword [0x410ba0]
cmp byte [ecx + eax], 0
jne 0x4058ff
lea ecx, [esi - 0xa]
mov dword [esp + 0x10], 0xa
mov eax, 0xba2e8ba3
mul ecx
mov ebx, edx
shr ebx, 3
imul eax, ebx, 0xb
mov dword [esp + 0x20], ebx
add eax, 0xa
cmp eax, esi
je 0x4056fc
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 2
lea edx, [esp + 0x30]
push edx
mov eax, dword [ecx]
push 0xc
mov dword [esp + 0x1c], 0xe
call dword [eax + 4]
test eax, eax
je 0x40593b
cmp dword [esp + 0x18], 2
jne 0x40593b
mov ecx, 0x10
call fcn.00407e30
test eax, eax
je 0x40591d
sub esp, 8
mov ecx, eax
call fcn.00407450
mov dword [0x4104e4], eax
test eax, eax
je 0x405927
mov esi, edi
lea ecx, [esi + 2]
lea ebx, [ebx]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405730
sub esi, ecx
mov ecx, 0x410030
sar esi, 1
inc esi
push 0x400
mov edx, esi
call fcn.00407bc0
add esp, 4
mov dword [0x410048], eax
push edi
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov ax, word [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov word [0x41004c], ax
mov eax, 0x200
mov dword [esp + 0x166c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], 0
cmp ebx, 0x200
jg 0x40579e
mov eax, ebx
imul eax, eax, 0xb
lea esi, [esp + 0x10]
push esi
lea esi, [esp + 0x70]
push esi
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x40593b
xor edi, edi
test ebx, ebx
jle 0x4058ff
jmp 0x4057d0
mov eax, dword [esp + 0x64]
mov ebx, edi
and ebx, 0x1ff
cmp edi, eax
jl 0x4057e9
add eax, 0x200
cmp edi, eax
jl 0x405832
mov eax, dword [esp + 0x68]
mov esi, edi
sub esi, ebx
sub eax, esi
mov dword [esp + 0x64], esi
cmp eax, 0x200
jle 0x405803
mov eax, 0x200
mov ecx, dword [esp + 0x60]
imul eax, eax, 0xb
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov edx, dword [eax + 4]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x70]
push eax
imul eax, esi, 0xb
add eax, dword [esp + 0x1674]
push eax
call edx
test eax, eax
je 0x40593b
imul eax, ebx, 0xb
lea esi, [esp + 0x6c]
sub esp, 8
mov ecx, esp
add esi, eax
mov eax, dword [esi]
mov dword [ecx], eax
mov ax, word [esi + 4]
mov word [ecx + 4], ax
mov al, byte [esi + 6]
mov byte [ecx + 6], al
call fcn.00407a10
mov edx, dword [esi + 7]
mov esi, dword [0x423468]
mov ebx, dword [0x4104e4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
test esi, esi
je 0x405882
mov ecx, dword [esi]
mov dword [0x423468], ecx
mov dword [esi], 0
jmp 0x4058cf
mov eax, dword [0x424c54]
cmp eax, 0xc
jge 0x4058b5
cmp eax, 4
jb 0x40589e
mov ecx, dword [0x424c50]
mov edx, eax
call fcn.0040da50
mov ecx, 0x200
call fcn.0040d380
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, 0x200
jmp 0x4058bb
mov esi, dword [0x424c50]
sub eax, 0xc
mov dword [0x424c54], eax
lea eax, [esi + 0xc]
mov dword [0x424c50], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
inc dword [ebx + 4]
push edx
call eax
movzx eax, ax
inc edi
cdq
add esp, 4
idiv dword [ebx + 8]
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
mov dword [esi], eax
mov eax, dword [ebx]
mov dword [eax + edx*4], esi
cmp edi, dword [esp + 0x20]
jl 0x4057d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x1674]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040dea1
mov esp, ebp
pop ebp
ret
mov dword [0x4104e4], 0
mov edx, 0x4010ec
mov ecx, 0x5e5
call fcn.004081f0
call fcn.00408570
call fcn.004025e0
int3