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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093038
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x100b0380]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x100e4bc8]
mov edx, dword [0x100e4bcc]
test eax, eax
jne 0x1005ba31
test edx, edx
jne 0x1005ba31
call fcn.1005b6b0
mov dword [0x100e4bc8], eax
mov dword [0x100e4bcc], edx
mov dword [ebp - 0x74], edx
mov ebx, eax
test eax, eax
jne 0x1005ba42
test edx, edx
je 0x1005bd08
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x6c], ecx
test ecx, ecx
je 0x1005ba9b
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push 0x33
call 0x1005ba59
add dword [esp], 5
retf
mov eax, dword [ebp - 0x14]
cdq
mov ecx, edx
mov edx, dword [ebp - 0x74]
add eax, ebx
lea esi, [ebp - 0x1b0]
adc ecx, edx
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x1005bb0c
test eax, eax
jne 0x1005babd
test ecx, ecx
je 0x1005bb0c
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
push 0x33
call 0x1005baca
add dword [esp], 5
retf
mov ecx, dword [ebp - 0x128]
xor eax, eax
test ecx, ecx
je 0x1005bd0a
add ecx, ebx
adc eax, edx
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x6c], edx
test edx, edx
je 0x1005bb84
test ecx, ecx
jne 0x1005bb35
test eax, eax
je 0x1005bb84
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], eax
push 0x33
call 0x1005bb42
add dword [esp], 5
retf
mov eax, dword [ebp - 0x8c]
lea ecx, [eax*4]
push ecx
call fcn.10079b72
xor edi, edi
add esp, 4
mov dword [ebp - 0x5c], eax
cmp eax, edi
je 0x1005bd08
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x70], edx
mov byte [ebp - 0x6c], 1
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x74]
lea ecx, [eax*4]
xor eax, eax
push ecx
mov ecx, dword [ebp - 0x5c]
add edx, ebx
adc eax, esi
push eax
push edx
push ecx
call fcn.1005b590
mov edx, dword [ebp - 0x8c]
lea eax, [edx + edx]
push eax
call fcn.10079b72
add esp, 0x14
mov dword [ebp - 0x54], eax
cmp eax, edi
je 0x1005bc4a
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x68], ecx
mov byte [ebp - 0x64], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x7c]
lea eax, [edx + edx]
push eax
mov eax, dword [ebp - 0x54]
xor edx, edx
add ecx, ebx
adc edx, esi
push edx
push ecx
push eax
call fcn.1005b590
mov ecx, dword [ebp - 0x88]
lea edx, [ecx*4]
push edx
call fcn.10079b72
add esp, 0x14
mov dword [ebp - 0x58], eax
cmp eax, edi
jne 0x1005bc5e
mov byte [ebp - 4], 0
lea esi, [ebp - 0x68]
call fcn.1005b370
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x70]
call fcn.1005b370
jmp 0x1005bd08
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
lea edx, [ecx*4]
xor ecx, ecx
add eax, ebx
push edx
mov edx, dword [ebp - 0x58]
adc ecx, esi
push ecx
push eax
push edx
call fcn.1005b590
add esp, 0x10
xor edx, edx
cmp dword [ebp - 0x8c], edi
jbe 0x1005bcc3
jmp 0x1005bca0
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + edx*4]
xor eax, eax
add ecx, ebx
adc eax, esi
push eax
push ecx
call fcn.1005b610
add esp, 8
test al, al
jne 0x1005bd28
inc edx
cmp edx, dword [ebp - 0x8c]
jb 0x1005bca0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x1005bcda
push eax
call fcn.10079c70
add esp, 4
mov dword [ebp - 0x58], edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
cmp eax, edi
je 0x1005bcf1
push eax
call fcn.10079c70
add esp, 4
mov dword [ebp - 0x54], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, edi
je 0x1005bd08
push eax
call fcn.10079c70
add esp, 4
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10079a05
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x54]
movzx edx, word [ecx + edx*2]
mov eax, dword [ebp - 0x5c]
mov edi, dword [eax + edx*4]
xor eax, eax
add edi, ebx
adc eax, esi
mov dword [ebp - 0xa4], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
xor esi, esi
cmp eax, esi
je 0x1005bd5a
push eax
call fcn.10079c70
add esp, 4
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x54]
cmp eax, esi
je 0x1005bd71
push eax
call fcn.10079c70
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x1005bd88
push eax
call fcn.10079c70
add esp, 4
mov edx, dword [ebp - 0xa4]
mov eax, edi
jmp 0x1005bd0c