Function at 0x40dbc0
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, 0x134
push ebx
push esi
push edi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 0x10]
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], ecx
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0xb0], ecx
mov dword [ebp - 0xac], edx
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x28]
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x38]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], edx
xor eax, eax
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov word [ebp - 4], cx
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0xc]
ja 0x40dcbb
jb 0x40dc7a
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x10]
jae 0x40dcbb
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0xc0]
mov eax, dword [ebp + ecx*8 - 0xbc]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xc8], edx
mov dword [ebp - 0xc4], eax
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x18], ecx
jmp 0x40dccb
push 0
lea ecx, [ebp - 0x118]
call fcn.0040c4d0
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], edx
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0xc]
ja 0x40dd43
jb 0x40dd02
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x10]
jae 0x40dd43
movzx edx, word [ebp - 4]
mov eax, dword [ebp + edx*8 - 0xc0]
mov ecx, dword [ebp + edx*8 - 0xbc]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
mov dx, word [ebp - 4]
add dx, 1
mov word [ebp - 4], dx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xcc], ecx
lea edx, [ebp - 0xd0]
mov dword [ebp - 0x1c], edx
jmp 0x40dd53
push 0
lea ecx, [ebp - 0x120]
call fcn.0040c4d0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xe8], edx
mov dword [ebp - 0xe4], eax
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov ecx, dword [ebp - 0x6c]
cmp ecx, dword [ebp - 0xc]
ja 0x40ddcb
jb 0x40dd8a
mov edx, dword [ebp - 0x70]
cmp edx, dword [ebp - 0x10]
jae 0x40ddcb
movzx eax, word [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0xc0]
mov edx, dword [ebp + eax*8 - 0xbc]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], edx
mov ax, word [ebp - 4]
add ax, 1
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 0xd4], edx
lea eax, [ebp - 0xd8]
mov dword [ebp - 0x20], eax
jmp 0x40dddb
push 0
lea ecx, [ebp - 0x128]
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 - 0xf0], eax
mov dword [ebp - 0xec], ecx
movzx eax, word [ebp - 4]
cdq
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], edx
mov edx, dword [ebp - 0x7c]
cmp edx, dword [ebp - 0xc]
ja 0x40de5f
jb 0x40de12
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x10]
jae 0x40de5f
movzx ecx, word [ebp - 4]
mov edx, dword [ebp + ecx*8 - 0xc0]
mov eax, dword [ebp + ecx*8 - 0xbc]
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x84], eax
mov cx, word [ebp - 4]
add cx, 1
mov word [ebp - 4], cx
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x24], ecx
jmp 0x40de6f
push 0
lea ecx, [ebp - 0x130]
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 - 0xf8], ecx
mov dword [ebp - 0xf4], edx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
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 - 0x100]
call fcn.0040c4b0
movzx ecx, word [ebp - 4]
lea eax, [ebp + ecx*8 - 0xc0]
cdq
push edx
push eax
lea ecx, [ebp - 0x108]
call fcn.0040c4b0
mov edx, dword [ebx + 8]
xor eax, eax
push eax
push edx
lea ecx, [ebp - 0x110]
call fcn.0040c4b0
mov word [ebp - 0x14], fs
mov dword [ebp - 0x44], esp
mov eax, 0x2b
mov fs, ax
and esp, 0xfffffff0
push 0x33
call 0x40def1
add dword [esp], 5
retf