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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x78
push 0xffffffffffffffff
push 0x10081938
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x100c2d54]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.1004f2f0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], edx
jne 0x1004f3c9
test edx, edx
je 0x1004f6e5
lea eax, [ebp + 0x1c]
mov ecx, eax
test ecx, ecx
mov dword [ebp + 4], eax
je 0x1004f424
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
push 0x33
call fcn.1004f3e2
mov eax, dword [ebp + 0x58]
cdq
mov ecx, edx
mov edx, dword [ebp - 0x10]
add eax, ebx
lea esi, [ebp - 0x14c]
adc ecx, edx
test esi, esi
mov dword [ebp + 4], esi
je 0x1004f495
test eax, eax
jne 0x1004f446
test ecx, ecx
je 0x1004f495
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
push 0x33
call fcn.1004f453
mov ecx, dword [ebp - 0xc4]
xor eax, eax
test ecx, ecx
je 0x1004f6e7
add ecx, ebx
adc eax, edx
lea edx, [ebp - 0x3c]
test edx, edx
mov dword [ebp + 4], edx
je 0x1004f50a
test ecx, ecx
jne 0x1004f4bb
test eax, eax
je 0x1004f50a
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], eax
push 0x33
call fcn.1004f4c8
mov eax, dword [ebp - 0x28]
lea ecx, [eax*4]
push ecx
call fcn.1005da00
xor esi, esi
add esp, 4
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x1004f6e5
lea edx, [ebp + 0x10]
mov dword [ebp], edx
mov byte [ebp + 4], 1
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
lea ecx, [eax*4]
xor eax, eax
push ecx
mov ecx, dword [ebp + 0x10]
add edx, ebx
adc eax, edi
push eax
push edx
push ecx
call fcn.1004eeb0
mov edx, dword [ebp - 0x28]
lea eax, [edx + edx]
push eax
call fcn.1005da00
add esp, 0x14
cmp eax, esi
mov dword [ebp + 0x18], eax
je 0x1004f5be
lea ecx, [ebp + 0x18]
mov dword [ebp + 8], ecx
mov byte [ebp + 0xc], 1
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
lea eax, [edx + edx]
push eax
mov eax, dword [ebp + 0x18]
xor edx, edx
add ecx, ebx
adc edx, edi
push edx
push ecx
push eax
call fcn.1004eeb0
mov ecx, dword [ebp - 0x24]
lea edx, [ecx*4]
push edx
call fcn.1005da00
add esp, 0x14
cmp eax, esi
mov dword [ebp + 0x14], eax
jne 0x1004f5d2
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1004ed20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.1004ed20
jmp 0x1004f6e5
lea eax, [ebp + 0x14]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
lea edx, [ecx*4]
xor ecx, ecx
add eax, ebx
push edx
mov edx, dword [ebp + 0x14]
adc ecx, edi
push ecx
push eax
push edx
call fcn.1004eeb0
mov al, 0x65
mov dl, 0x64
mov cl, 0x72
mov byte [ebp + 0x60], al
mov byte [ebp + 0x66], al
mov byte [ebp + 0x6a], al
mov byte [ebp + 0x6f], al
mov al, 0x73
add esp, 0x10
cmp dword [ebp - 0x28], 0
mov byte [ebp + 0x5c], 0x4c
mov byte [ebp + 0x5d], dl
mov byte [ebp + 0x5e], cl
mov byte [ebp + 0x5f], 0x47
mov byte [ebp + 0x61], 0x74
mov byte [ebp + 0x62], 0x50
mov byte [ebp + 0x63], cl
mov byte [ebp + 0x64], 0x6f
mov byte [ebp + 0x65], 0x63
mov byte [ebp + 0x67], dl
mov byte [ebp + 0x68], 0x75
mov byte [ebp + 0x69], cl
mov byte [ebp + 0x6b], 0x41
mov byte [ebp + 0x6c], dl
mov byte [ebp + 0x6d], dl
mov byte [ebp + 0x6e], cl
mov byte [ebp + 0x70], al
mov byte [ebp + 0x71], al
mov byte [ebp + 0x72], 0
jbe 0x1004f698
mov edi, edi
lea eax, [ebp + 0x5c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1004f666
sub eax, edx
push eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + esi*4]
xor edx, edx
add ecx, ebx
adc edx, edi
push edx
push ecx
lea eax, [ebp + 0x5c]
push eax
call fcn.1004ef30
add esp, 0x10
test al, al
jne 0x1004f708
add esi, 1
cmp esi, dword [ebp - 0x28]
jb 0x1004f660
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1004f6b3
push eax
call fcn.1005dac3
add esp, 4
mov dword [ebp + 0x14], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1004f6ce
push eax
call fcn.1005dac3
add esp, 4
mov dword [ebp + 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1004f6e5
push eax
call fcn.1005dac3
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 + 0x74]
xor ecx, ebp
call fcn.1005df84
add ebp, 0x78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
movzx edx, word [ecx + esi*2]
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + edx*4]
xor edi, edi
add esi, ebx
adc edi, dword [ebp - 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.1004ed20
mov byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.1004ed20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.1004ed20
mov eax, esi
mov edx, edi
jmp 0x1004f6e9