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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575383
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5bb250]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x5bb250]
xor eax, esp
push eax
lea eax, [esp + 0x2a0]
mov dword fs:[0], eax
mov dword [esp + 0x30], edx
mov eax, ecx
mov dword [esp + 0x34], eax
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x60], ecx
test edx, edx
je 0x4d86a0
test eax, eax
je 0x4d86a0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x214]
call fcn.004bf15a
and dword [esp + 0x2a8], 0
lea ecx, [esp + 0x184]
call fcn.004bf138
lea edi, [esp + 0x40]
mov byte [esp + 0x24], 0xff
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xfc]
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [esp + 0x64], xmm0
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
movdqu xmmword [esp + 0x50], xmm0
mov byte [esp + 0x20], al
mov byte [esp + 0x28], al
movsd dword es:[edi], dword [esi]
mov byte [esp + 0x1c], al
mov dword [esp + 0x14], eax
movsd dword es:[edi], dword [esi]
call fcn.004bf138
lea ecx, [esp + 0x74]
call fcn.004bf138
xor esi, esi
mov byte [esp + 0x2a8], 3
mov ecx, esi
mov dword [esp + 0x10], esi
push 0x20
mov dword [esp + 0x40], ecx
pop edi
cmp ecx, 1
cmove ebx, dword [esp + 0x60]
test ebx, ebx
je 0x4d85f4
cmp word [ebx], si
je 0x4d85f4
lea ecx, [esp + 0xfc]
call fcn.004bf2d6
lea ecx, [esp + 0x74]
call fcn.004bf2d6
jmp 0x4d8058
cmp ax, di
ja 0x4d80a8
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d804a
jmp 0x4d80a8
push 0x3d
pop ecx
cmp ax, cx
je 0x4d80c0
cmp ax, di
jbe 0x4d80c0
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, esi
xor ecx, ecx
mov esi, eax
sub esi, ebx
inc esi
shr esi, 1
cmp ebx, eax
cmova esi, ecx
test esi, esi
je 0x4d80a2
movzx eax, word [ebx]
lea ecx, [esp + 0xfc]
push eax
call fcn.004bf531
add ebx, 2
inc edi
cmp edi, esi
jb 0x4d808a
push 0
pop esi
push 0x20
pop edi
movzx eax, word [ebx]
test ax, ax
jne 0x4d8062
jmp 0x4d80c0
cmp ax, di
ja 0x4d80c8
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d80b2
mov ax, word [ebx]
add ebx, 2
push 0x3d
pop ecx
cmp ax, cx
jne 0x4d85eb
jmp 0x4d80ea
cmp ax, di
ja 0x4d80f2
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d80dc
mov ax, word [ebx]
add ebx, 2
push 0x27
pop ecx
cmp ax, cx
jne 0x4d85eb
jmp 0x4d8141
cmp ax, cx
je 0x4d8149
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, esi
xor ecx, ecx
mov esi, eax
sub esi, ebx
inc esi
shr esi, 1
cmp ebx, eax
cmova esi, ecx
test esi, esi
je 0x4d813b
movzx eax, word [ebx]
lea ecx, [esp + 0x74]
push eax
call fcn.004bf531
add ebx, 2
inc edi
cmp edi, esi
jb 0x4d8126
push 0
pop esi
push 0x27
pop ecx
movzx eax, word [ebx]
test ax, ax
jne 0x4d8106
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x4d85eb
lea ecx, [esp + 0x74]
call fcn.004bf2cb
test al, al
jne 0x4d85d2
push 0x598684
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
jne 0x4d8532
push 0x5a0f60
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
jne 0x4d8532
push str.restype
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d823f
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x4d8229
sub esp, 0x10
mov edx, dword [esp + 0x40]
mov edi, esp
mov ecx, dword [esp + 0x44]
lea esi, [esp + 0x60]
sub esp, 0x10
lea eax, [esp + 0x1a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x84]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x5c]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push dword [esp + 0x60]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push eax
lea eax, [esp + 0x254]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x84]
push dword [esp + 0x7c]
movsd dword es:[edi], dword [esi]
call fcn.004d7df7
mov esi, dword [esp + 0x68]
add esp, 0x54
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x188]
call fcn.004bf311
jmp 0x4d85cd
push str.dest
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d82ee
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf2f3
push eax
call fcn.00542293
mov esi, dword [esp + 0x38]
add esp, 0xc
add eax, dword [esi]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add eax, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x44], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add eax, dword [esi]
add esp, 0xc
cmp eax, dword [esi + 8]
cmovg eax, dword [esi + 8]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add eax, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
cmp eax, ecx
jle 0x4d85d2
mov dword [esp + 0x4c], ecx
jmp 0x4d85d2
push str.source
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d8375
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf2f3
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x64], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4d85d2
push str.corner
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d83fc
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf2f3
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x50], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x54], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x58], eax
lea eax, [esp + 0x10]
push edi
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00542293
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4d85d2
push str.mask
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d8449
push ecx
lea ecx, [esp + 0x78]
call fcn.004bf309
cmp ax, 0x23
lea eax, [esp + 0x10]
push 0x10
push eax
jne 0x4d8432
call fcn.004bf2f3
add eax, 2
jmp 0x4d8437
call fcn.004bf2f3
push eax
call fcn.005422ab
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4d85d2
push str.fade
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d8480
push 0xa
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf2f3
push eax
call fcn.005422ab
add esp, 0xc
mov byte [esp + 0x24], al
jmp 0x4d85d2
push str.hole
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d84ba
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf2f3
push eax
call fcn.0053d244
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x20], al
jmp 0x4d85d2
push str.xtiled
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d84f4
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf2f3
push eax
call fcn.0053d244
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x28], al
jmp 0x4d85d2
push str.ytiled
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d85d2
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf2f3
push eax
call fcn.0053d244
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x1c], al
jmp 0x4d85d2
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x4d85a7
sub esp, 0x10
mov edx, dword [esp + 0x40]
mov edi, esp
mov ecx, dword [esp + 0x44]
lea esi, [esp + 0x60]
sub esp, 0x10
lea eax, [esp + 0x1a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x84]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x5c]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push dword [esp + 0x60]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push eax
lea eax, [esp + 0x254]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x84]
push dword [esp + 0x7c]
movsd dword es:[edi], dword [esi]
call fcn.004d7df7
mov esi, dword [esp + 0x68]
add esp, 0x54
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x210]
call fcn.004bf311
push 0x598684
lea ecx, [esp + 0x100]
call fcn.004bf554
test al, al
je 0x4d85d2
inc esi
mov dword [esp + 0x14], esi
mov ax, word [ebx]
add ebx, 2
push 0x20
pop edi
cmp ax, di
jne 0x4d85eb
xor esi, esi
cmp word [ebx], si
jne 0x4d8033
mov ecx, dword [esp + 0x3c]
xor esi, esi
push 0x20
pop edi
inc ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], ecx
cmp ecx, 2
jl 0x4d801a
sub esp, 0x10
mov edx, dword [esp + 0x40]
mov edi, esp
mov ecx, dword [esp + 0x44]
lea esi, [esp + 0x60]
sub esp, 0x10
lea eax, [esp + 0x1a4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x84]
sub esp, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [esp + 0x70]
push dword [esp + 0x4c]
push dword [esp + 0x5c]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push dword [esp + 0x60]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x58]
push eax
lea eax, [esp + 0x254]
movsd dword es:[edi], dword [esi]
push eax
push dword [esp + 0x84]
push dword [esp + 0x7c]
movsd dword es:[edi], dword [esi]
call fcn.004d7df7
add esp, 0x54
lea ecx, [esp + 0x74]
call fcn.004bf1a3
lea ecx, [esp + 0xfc]
call fcn.004bf1a3
lea ecx, [esp + 0x184]
call fcn.004bf1a3
lea ecx, [esp + 0x20c]
call fcn.004bf1a3
mov al, 1
jmp 0x4d86a2
xor al, al
mov ecx, dword [esp + 0x2a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x288]
xor ecx, esp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret