Function at 0x5ca010
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x7be70c
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x89b044]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x89b044]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov edx, dword [esp + 0x2a8]
mov eax, dword [esp + 0x2a0]
mov ecx, dword [esp + 0x29c]
mov ebp, dword [esp + 0x2a4]
mov esi, dword [esp + 0x2ac]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x2b0]
xor edi, edi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x74], edx
cmp eax, edi
je 0x5ca9b2
cmp ecx, edi
je 0x5ca9b2
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x20c]
call fcn.0059d4a0
lea ecx, [esp + 0x180]
mov dword [esp + 0x294], edi
call fcn.0059cc50
mov eax, dword [ebp]
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x58], eax
xor eax, eax
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0xfc]
mov byte [esp + 0x294], 1
mov dword [esp + 0x64], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x28], 0xff
mov byte [esp + 0x24], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x20], al
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], edi
call fcn.0059cc50
lea ecx, [esp + 0x78]
mov byte [esp + 0x294], 2
call fcn.0059cc50
xor eax, eax
mov dword [esp + 0x14], edi
mov edi, dword [sym.imp.USER32.dll_CharNextW]
mov byte [esp + 0x294], 3
mov dword [esp + 0x70], eax
lea ecx, [ecx]
cmp eax, 1
jne 0x5ca159
mov esi, dword [esp + 0x74]
test esi, esi
je 0x5ca890
cmp word [esi], 0
je 0x5ca890
jmp 0x5ca176
mov edi, dword [sym.imp.USER32.dll_CharNextW]
lea ecx, [esp + 0xfc]
call fcn.0059ced0
lea ecx, [esp + 0x78]
call fcn.0059ced0
movzx eax, word [esi]
test ax, ax
jbe 0x5ca1a6
cmp ax, 0x20
ja 0x5ca1a6
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
ja 0x5ca193
movzx eax, word [esi]
test ax, ax
je 0x5ca1ef
cmp ax, 0x3d
je 0x5ca1ef
cmp ax, 0x20
jbe 0x5ca1ef
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp esi, edi
jae 0x5ca1e7
jmp 0x5ca1d0
movzx eax, word [esi]
push eax
lea ecx, [esp + 0x100]
call fcn.0059d100
add esi, 2
cmp esi, edi
jb 0x5ca1d0
movzx eax, word [esi]
test ax, ax
jne 0x5ca1ae
movzx eax, word [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
test ax, ax
jbe 0x5ca210
cmp ax, 0x20
ja 0x5ca210
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
ja 0x5ca1fd
mov ax, word [esi]
add esi, 2
cmp ax, 0x3d
jne 0x5ca890
movzx eax, word [esi]
test ax, ax
jbe 0x5ca23b
cmp ax, 0x20
ja 0x5ca23b
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
ja 0x5ca228
mov cx, word [esi]
add esi, 2
cmp cx, 0x27
jne 0x5ca890
movzx eax, word [esi]
test ax, ax
je 0x5ca282
cmp ax, 0x27
je 0x5ca282
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp esi, edi
jae 0x5ca27a
movzx eax, word [esi]
push eax
lea ecx, [esp + 0x7c]
call fcn.0059d100
add esi, 2
cmp esi, edi
jb 0x5ca266
movzx eax, word [esi]
test ax, ax
jne 0x5ca253
mov dx, word [esi]
add esi, 2
cmp dx, 0x27
jne 0x5ca88a
lea ecx, [esp + 0x78]
call fcn.0059cec0
test al, al
jne 0x5ca874
push 0x8027e4
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
jne 0x5ca78b
push 0x8027dc
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
jne 0x5ca78b
push str.restype
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca3c3
cmp dword [esp + 0x18], 0
jle 0x5ca3ad
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x94]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x1c8]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x250]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push ebp
push edx
push eax
call fcn.005c9ef0
add esp, 0x60
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x184]
call fcn.0059cf20
jmp 0x5ca870
push str.dest
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca470
push 0xa
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.0059cef0
push eax
call fcn.0072c7d5
add eax, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x64], eax
push 0xa
lea eax, [esp + 0x24]
push eax
add ecx, 2
push ecx
call fcn.0072c7d5
add eax, dword [ebp + 4]
push 0xa
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x30]
push edx
add eax, 2
push eax
call fcn.0072c7d5
mov ebx, eax
add ebx, dword [ebp]
mov eax, dword [ebp + 8]
add esp, 0x24
cmp ebx, eax
jle 0x5ca43c
mov ebx, eax
mov edx, dword [esp + 0x14]
push 0xa
lea ecx, [esp + 0x18]
push ecx
add edx, 2
push edx
call fcn.0072c7d5
mov ecx, eax
add ecx, dword [ebp + 4]
mov eax, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x64], ecx
jle 0x5ca874
mov dword [esp + 0x64], eax
jmp 0x5ca874
push str.source
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca4f2
push 0xa
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
call fcn.0059cef0
push eax
call fcn.0072c7d5
mov edx, dword [esp + 0x20]
push 0xa
lea ecx, [esp + 0x24]
push ecx
add edx, 2
push edx
mov dword [esp + 0x4c], eax
call fcn.0072c7d5
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], eax
push 0xa
lea eax, [esp + 0x30]
push eax
add ecx, 2
push ecx
call fcn.0072c7d5
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x38]
push 0xa
lea edx, [esp + 0x3c]
push edx
add eax, 2
push eax
call fcn.0072c7d5
add esp, 0x30
mov dword [esp + 0x40], eax
jmp 0x5ca874
push str.corner
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca574
push 0xa
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
call fcn.0059cef0
push eax
call fcn.0072c7d5
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
push 0xa
lea edx, [esp + 0x24]
push edx
add eax, 2
push eax
call fcn.0072c7d5
mov edx, dword [esp + 0x2c]
push 0xa
lea ecx, [esp + 0x30]
push ecx
add edx, 2
push edx
mov dword [esp + 0x6c], eax
call fcn.0072c7d5
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x70], eax
push 0xa
lea eax, [esp + 0x3c]
push eax
add ecx, 2
push ecx
call fcn.0072c7d5
add esp, 0x30
mov dword [esp + 0x50], eax
jmp 0x5ca874
push str.mask
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca5db
push 0
lea ecx, [esp + 0x7c]
call fcn.0059cf10
push 0x10
lea ecx, [esp + 0x7c]
cmp ax, 0x23
jne 0x5ca5bf
lea edx, [esp + 0x18]
push edx
call fcn.0059cef0
add eax, 2
push eax
call fcn.0072c81d
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x5ca874
lea eax, [esp + 0x18]
push eax
call fcn.0059cef0
push eax
call fcn.0072c81d
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x5ca874
push str.fade
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca615
push 0xa
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
call fcn.0059cef0
push eax
call fcn.0072c81d
add esp, 0xc
mov byte [esp + 0x28], al
jmp 0x5ca874
push str.hole
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca67d
lea ecx, [esp + 0x78]
mov edi, 0x7fbe40
call fcn.0059cef0
mov cx, word [eax]
cmp cx, word [edi]
jne 0x5ca66a
test cx, cx
je 0x5ca65a
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x5ca66a
add eax, 4
add edi, 4
test cx, cx
jne 0x5ca638
xor eax, eax
test eax, eax
sete dl
mov byte [esp + 0x24], dl
jmp 0x5ca874
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esp + 0x24], dl
jmp 0x5ca874
push str.xtiled
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca6e5
lea ecx, [esp + 0x78]
mov edi, 0x7fbe40
call fcn.0059cef0
mov cx, word [eax]
cmp cx, word [edi]
jne 0x5ca6d2
test cx, cx
je 0x5ca6c2
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x5ca6d2
add eax, 4
add edi, 4
test cx, cx
jne 0x5ca6a0
xor eax, eax
test eax, eax
sete al
mov byte [esp + 0x2c], al
jmp 0x5ca874
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + 0x2c], al
jmp 0x5ca874
push str.ytiled
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca74d
lea ecx, [esp + 0x78]
mov edi, 0x7fbe40
call fcn.0059cef0
mov cx, word [eax]
cmp cx, word [edi]
jne 0x5ca73a
test cx, cx
je 0x5ca72a
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x5ca73a
add eax, 4
add edi, 4
test cx, cx
jne 0x5ca708
xor eax, eax
test eax, eax
sete cl
mov byte [esp + 0x20], cl
jmp 0x5ca874
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete cl
mov byte [esp + 0x20], cl
jmp 0x5ca874
push 0x802818
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca874
push 0xa
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.0059cef0
push eax
call fcn.0072c7d5
add esp, 0xc
mov dword [esp + 0x30], eax
jmp 0x5ca874
cmp dword [esp + 0x18], 0
jle 0x5ca84a
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x94]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x1c8]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x250]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push ebp
push edx
push eax
call fcn.005c9ef0
add esp, 0x60
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x208]
call fcn.0059cf20
push 0x8027e4
lea ecx, [esp + 0x100]
call fcn.0059d600
test al, al
je 0x5ca874
inc dword [esp + 0x18]
mov dx, word [esi]
add esi, 2
cmp dx, 0x20
jne 0x5ca88a
cmp word [esi], 0
jne 0x5ca170
mov edi, dword [sym.imp.USER32.dll_CharNextW]
mov eax, dword [esp + 0x70]
inc eax
cmp eax, 2
mov dword [esp + 0x70], eax
mov dword [esp + 0x18], 0
jl 0x5ca150
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x60]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x94]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0xac]
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0xb4]
lea edx, [esp + 0x1c8]
push edx
mov edx, dword [esp + 0xa0]
lea eax, [esp + 0x250]
push eax
mov eax, dword [esp + 0xb8]
push ecx
push ebp
push edx
push eax
call fcn.005c9ef0
add esp, 0x60
lea ecx, [esp + 0x78]
mov byte [esp + 0x294], 2
call fcn.0059cc80
lea ecx, [esp + 0xfc]
mov byte [esp + 0x294], 1
call fcn.0059cc80
lea ecx, [esp + 0x180]
mov byte [esp + 0x294], 0
call fcn.0059cc80
lea ecx, [esp + 0x204]
mov dword [esp + 0x294], 0xffffffff
call fcn.0059cc80
mov al, 1
jmp 0x5ca9b4
xor al, al
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.0071fe0b
add esp, 0x284
ret