Function at 0x40d0d0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor edx, edx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], edx
xor eax, eax
mov word [ebp - 4], ax
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0xc]
ja 0x40d165
jb 0x40d12a
mov edx, dword [ebp - 0x58]
cmp edx, dword [ebp - 0x10]
jae 0x40d165
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x18]
mov edx, dword [ebp + eax*8 - 0x14]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], edx
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x9c], edx
lea eax, [ebp - 0xa0]
mov dword [ebp - 0x20], eax
jmp 0x40d175
push 0
lea ecx, [ebp - 0xf0]
call fcn.0040c4d0
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0xc]
ja 0x40d1e7
jb 0x40d1ac
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x10]
jae 0x40d1e7
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0x18]
mov eax, dword [ebp + ecx*8 - 0x14]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], eax
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0xa8]
mov dword [ebp - 0x24], ecx
jmp 0x40d1f7
push 0
lea ecx, [ebp - 0xf8]
call fcn.0040c4d0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0xbc], edx
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0xc]
ja 0x40d269
jb 0x40d22e
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x10]
jae 0x40d269
movzx edx, word [ebp - 4]
mov eax, dword [ebp + edx*8 - 0x18]
mov ecx, dword [ebp + edx*8 - 0x14]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ecx
lea edx, [ebp - 0xb0]
mov dword [ebp - 0x28], edx
jmp 0x40d279
push 0
lea ecx, [ebp - 0x100]
call fcn.0040c4d0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xc4], eax
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], edx
mov ecx, dword [ebp - 0x84]
cmp ecx, dword [ebp - 0xc]
ja 0x40d303
jb 0x40d2bc
mov edx, dword [ebp - 0x88]
cmp edx, dword [ebp - 0x10]
jae 0x40d303
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x18]
mov edx, dword [ebp + eax*8 - 0x14]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xb8], ecx
mov dword [ebp - 0xb4], edx
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x2c], eax
jmp 0x40d313
push 0
lea ecx, [ebp - 0x108]
call fcn.0040c4d0
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
xor edx, edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
movzx eax, word [ebp - 4]
cdq
mov ecx, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp - 0xc]
sbb eax, edx
push eax
push ecx
lea ecx, [ebp - 0xd8]
call fcn.0040c4b0
movzx ecx, word [ebp - 4]
lea eax, [ebp + ecx*8 - 0x18]
cdq
push edx
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040c4b0
mov edx, dword [ebx + 8]
xor eax, eax
push eax
push edx
lea ecx, [ebp - 0xe8]
call fcn.0040c4b0
mov word [ebp - 0x1c], fs
mov dword [ebp - 0x4c], esp
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x40d392
add dword [esp], 5
retf