Function at 0x403db0
Capabilities:
Enumerate pe sections

Disassembly:
push 0xffffffffffffffff
push 0x42e3ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6bc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x34]
call fcn.00401000
mov eax, dword [esp + 0x6dc]
xor esi, esi
push 1
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x6dc], esi
mov dword [esp + 0x18], esi
call fcn.00401070
cmp eax, 1
jne 0x4042f6
lea ecx, [esp + 0x34]
call fcn.00401060
test eax, eax
jne 0x4042f6
mov ebp, dword [sym.imp.MSVCRT.dll_malloc]
push 0x20
call ebp
mov edi, eax
add esp, 4
cmp edi, esi
mov dword [esp + 0x10], edi
je 0x4042f6
mov ecx, 8
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
call fcn.00403c70
mov edx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x24], ebx
mov cx, word [ebx + 4]
mov word [edx], cx
mov ecx, dword [esp + 0x10]
mov ax, word [ebx + 6]
mov word [ecx + 2], ax
mov eax, dword [esp + 0x10]
mov edx, dword [ebx]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
mov cl, byte [ebx + 0x18]
xor eax, eax
mov byte [edx + 4], cl
mov ecx, dword [esp + 0x10]
mov si, word [ecx + 2]
mov ax, word [ecx]
mov dword [esp + 0x2c], esi
imul esi, eax
push esi
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], esi
call ebp
xor ebp, ebp
add esp, 4
cmp eax, ebp
mov dword [esp + 0x18], eax
je 0x4042f2
mov al, byte [ebx + 0x18]
mov edi, dword [esp + 0x18]
mov dl, al
mov ecx, esi
mov dh, dl
mov eax, edx
shl eax, 0x10
mov ax, dx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebx + 8], ebp
je 0x403f1c
push 0x301
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x18], eax
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x18]
cmp edi, ebp
je 0x4042f2
mov ecx, 0xc0
xor eax, eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov byte [ecx], 3
mov eax, dword [ebx + 0x14]
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x20]
lea ecx, [eax + eax*2]
mov edi, dword [edx + 0x18]
mov eax, ecx
inc edi
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 [esp + 0x10]
mov edx, dword [ecx + 0xc]
shl edx, 2
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x1c]
cmp edi, ebp
je 0x4042f2
mov ecx, dword [eax + 0xc]
xor eax, eax
shl ecx, 2
mov edx, ecx
mov esi, 0xffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [esp + 0x20], esi
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
jbe 0x4041be
lea ecx, [esp + 0x34]
call fcn.004027e0
mov ebx, eax
test ebx, ebx
je 0x4042f2
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x18
call esi
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [ecx + 0x1c]
mov dword [edx + ebp*4], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edi, dword [ecx + ebp*4]
test edi, edi
je 0x4042f2
mov ecx, 6
xor eax, eax
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov dx, word [ebx + 4]
mov ecx, dword [eax + ebp*4]
mov word [ecx + 4], dx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov ax, word [ebx + 6]
mov edx, dword [ecx + ebp*4]
mov word [edx + 6], ax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
mov cx, word [ebx]
mov eax, dword [edx + ebp*4]
mov word [eax], cx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov dx, word [ebx + 2]
mov ecx, dword [eax + ebp*4]
xor eax, eax
mov word [ecx + 2], dx
mov ecx, dword [esp + 0x10]
mov ax, word [ebx + 0x30]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + ebp*4]
mov dword [ecx + 0xc], eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x404071
mov ax, word [ebx + 0x30]
test ax, ax
jne 0x40402d
inc dword [esp + 0x14]
jmp 0x40404a
mov edi, dword [esp + 0x1c]
mov edx, eax
and edx, 0xffff
add edi, edx
cmp ax, word [esp + 0x20]
mov dword [esp + 0x1c], edi
jae 0x40404a
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x404075
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + ebp*4]
mov byte [edx + 8], 1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov al, byte [ebx + 0x34]
mov edx, dword [ecx + ebp*4]
mov byte [edx + 9], al
jmp 0x404075
inc dword [esp + 0x14]
mov eax, dword [ebx + 8]
test eax, eax
je 0x4040ef
push 0x301
call esi
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, dword [ecx + 0x1c]
mov ecx, dword [edx + ebp*4]
mov dword [ecx + 0x14], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp*4]
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x4042f2
mov ecx, 0xc0
xor eax, eax
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp*4]
mov edx, dword [ecx + 0x14]
mov byte [edx], 3
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x1c]
mov eax, dword [edx + ebp*4]
mov edx, ecx
shr ecx, 2
mov edi, dword [eax + 0x14]
inc edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
jmp 0x4040ff
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov edx, dword [ecx + ebp*4]
mov dword [edx + 0x14], eax
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [edx + 0x1c]
mov edx, dword [ecx + ebp*4]
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + ebp*4]
mov eax, dword [edx + 0x10]
test eax, eax
je 0x4042f2
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push ebx
push edi
push ecx
push eax
push ebp
call fcn.00404ac0
mov edx, dword [esp + 0x24]
add esp, 0x14
inc ebp
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp*4 - 4]
mov byte [ecx + 8], 1
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov dl, byte [ebx + 0x34]
mov ecx, dword [eax + ebp*4 - 4]
mov byte [ecx + 9], dl
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x1c]
mov ax, word [esp + 0x30]
mov edx, dword [ecx + ebp*4 - 4]
mov word [edx + 4], ax
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x1c]
mov cx, word [esp + 0x2c]
mov eax, dword [edx + ebp*4 - 4]
mov word [eax + 6], cx
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp*4 - 4]
mov word [ecx], 0
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax + ebp*4 - 4]
mov word [ecx + 2], 0
mov eax, dword [edi]
cmp ebp, eax
jb 0x403f79
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ebx, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [edx + 8], ecx
jbe 0x4041e0
mov edi, esi
xor edx, edx
and edi, 0xffff
mov ecx, dword [esp + 0x10]
div edi
add dword [ecx + 8], eax
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
shl eax, 2
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x14]
test edi, edi
je 0x4042f2
mov ecx, dword [eax + 8]
xor eax, eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
cmp edx, eax
jne 0x40428e
xor eax, eax
test edx, edx
jbe 0x404244
mov ecx, dword [ecx + 0x14]
mov dword [ecx + eax*4], eax
mov ecx, dword [esp + 0x10]
inc eax
cmp eax, dword [ecx + 8]
jb 0x404234
lea ecx, [esp + 0x34]
call fcn.00403c80
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_free]
mov esi, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x6d4], 0xffffffff
call fcn.00401050
mov eax, esi
mov ecx, dword [esp + 0x6cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c8
ret
mov eax, dword [ebx]
xor edi, edi
xor ebp, ebp
test eax, eax
jbe 0x404244
lea ecx, [esp + 0x34]
call fcn.004027e0
test eax, eax
je 0x4042f2
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4042da
mov ax, word [eax + 0x30]
test ax, ax
je 0x4042da
and eax, 0xffff
mov ecx, esi
cdq
and ecx, 0xffff
idiv ecx
test eax, eax
jbe 0x4042e6
mov edx, dword [esp + 0x10]
inc edi
dec eax
mov ecx, dword [edx + 0x14]
mov dword [ecx + edi*4 - 4], ebp
jne 0x4042c9
jmp 0x4042e6
mov edx, dword [esp + 0x10]
inc edi
mov eax, dword [edx + 0x14]
mov dword [eax + edi*4 - 4], ebp
mov eax, dword [ebx]
inc ebp
cmp ebp, eax
jb 0x404298
jmp 0x404244
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.00403c80
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404314
lea ecx, [esp + 0x10]
push ecx
call fcn.00404970
add esp, 4
test esi, esi
je 0x404322
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x34]
mov dword [esp + 0x6d4], 0xffffffff
call fcn.00401050
xor eax, eax
jmp 0x404275