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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x576743
mov eax, dword fs:[0]
push eax
sub esp, 0x290
mov eax, dword [0x5bd250]
xor eax, esp
mov dword [esp + 0x288], eax
push ebx
push esi
push edi
mov eax, dword [0x5bd250]
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 0x4d87ef
test eax, eax
je 0x4d87ef
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x214]
call fcn.004bf2aa
and dword [esp + 0x2a8], 0
lea ecx, [esp + 0x184]
call fcn.004bf288
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.004bf288
lea ecx, [esp + 0x74]
call fcn.004bf288
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 0x4d8743
cmp word [ebx], si
je 0x4d8743
lea ecx, [esp + 0xfc]
call fcn.004bf426
lea ecx, [esp + 0x74]
call fcn.004bf426
jmp 0x4d81a7
cmp ax, di
ja 0x4d81f7
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d8199
jmp 0x4d81f7
push 0x3d
pop ecx
cmp ax, cx
je 0x4d820f
cmp ax, di
jbe 0x4d820f
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 0x4d81f1
movzx eax, word [ebx]
lea ecx, [esp + 0xfc]
push eax
call fcn.004bf681
add ebx, 2
inc edi
cmp edi, esi
jb 0x4d81d9
push 0
pop esi
push 0x20
pop edi
movzx eax, word [ebx]
test ax, ax
jne 0x4d81b1
jmp 0x4d820f
cmp ax, di
ja 0x4d8217
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d8201
mov ax, word [ebx]
add ebx, 2
push 0x3d
pop ecx
cmp ax, cx
jne 0x4d873a
jmp 0x4d8239
cmp ax, di
ja 0x4d8241
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
movzx eax, word [ebx]
test ax, ax
jne 0x4d822b
mov ax, word [ebx]
add ebx, 2
push 0x27
pop ecx
cmp ax, cx
jne 0x4d873a
jmp 0x4d8290
cmp ax, cx
je 0x4d8298
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 0x4d828a
movzx eax, word [ebx]
lea ecx, [esp + 0x74]
push eax
call fcn.004bf681
add ebx, 2
inc edi
cmp edi, esi
jb 0x4d8275
push 0
pop esi
push 0x27
pop ecx
movzx eax, word [ebx]
test ax, ax
jne 0x4d8255
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x4d873a
lea ecx, [esp + 0x74]
call fcn.004bf41b
test al, al
jne 0x4d8721
push 0x59a6b4
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
jne 0x4d8681
push 0x5a2f90
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
jne 0x4d8681
push str.restype
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d838e
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x4d8378
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.004d7f46
mov esi, dword [esp + 0x68]
add esp, 0x54
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x188]
call fcn.004bf461
jmp 0x4d871c
push str.dest
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d843d
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf443
push eax
call fcn.0053d73e
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.0053d73e
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.0053d73e
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.0053d73e
add eax, dword [esi + 4]
add esp, 0xc
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x4c], eax
cmp eax, ecx
jle 0x4d8721
mov dword [esp + 0x4c], ecx
jmp 0x4d8721
push str.source
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d84c4
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf443
push eax
call fcn.0053d73e
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.0053d73e
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.0053d73e
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.0053d73e
add esp, 0xc
mov dword [esp + 0x70], eax
jmp 0x4d8721
push str.corner
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d854b
push 0xa
pop edi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf443
push eax
call fcn.0053d73e
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.0053d73e
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.0053d73e
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.0053d73e
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4d8721
push str.mask
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d8598
push ecx
lea ecx, [esp + 0x78]
call fcn.004bf459
cmp ax, 0x23
lea eax, [esp + 0x10]
push 0x10
push eax
jne 0x4d8581
call fcn.004bf443
add eax, 2
jmp 0x4d8586
call fcn.004bf443
push eax
call fcn.0053d756
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4d8721
push str.fade
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d85cf
push 0xa
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
call fcn.004bf443
push eax
call fcn.0053d756
add esp, 0xc
mov byte [esp + 0x24], al
jmp 0x4d8721
push str.hole
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d8609
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf443
push eax
call fcn.0053e9e4
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x20], al
jmp 0x4d8721
push str.xtiled
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d8643
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf443
push eax
call fcn.0053e9e4
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x28], al
jmp 0x4d8721
push str.ytiled
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d8721
push str.true
lea ecx, [esp + 0x78]
call fcn.004bf443
push eax
call fcn.0053e9e4
neg eax
pop ecx
sbb al, al
inc al
pop ecx
mov byte [esp + 0x1c], al
jmp 0x4d8721
mov esi, dword [esp + 0x14]
test esi, esi
jle 0x4d86f6
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.004d7f46
mov esi, dword [esp + 0x68]
add esp, 0x54
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x210]
call fcn.004bf461
push 0x59a6b4
lea ecx, [esp + 0x100]
call fcn.004bf6a4
test al, al
je 0x4d8721
inc esi
mov dword [esp + 0x14], esi
mov ax, word [ebx]
add ebx, 2
push 0x20
pop edi
cmp ax, di
jne 0x4d873a
xor esi, esi
cmp word [ebx], si
jne 0x4d8182
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 0x4d8169
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.004d7f46
add esp, 0x54
lea ecx, [esp + 0x74]
call fcn.004bf2f3
lea ecx, [esp + 0xfc]
call fcn.004bf2f3
lea ecx, [esp + 0x184]
call fcn.004bf2f3
lea ecx, [esp + 0x20c]
call fcn.004bf2f3
mov al, 1
jmp 0x4d87f1
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.0053f9bc
mov esp, ebp
pop ebp
ret