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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c420c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4f4214]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x4f4214]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x60], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], edx
test eax, eax
je 0x4608bf
test ecx, ecx
je 0x4608bf
lea eax, [esp + 0x190]
mov dword [esp + 0x18c], eax
xor ecx, ecx
push edi
or eax, 0xffffffff
lea esi, [esp + 0x190]
mov word [esp + 0x194], cx
call fcn.00451c40
xor ecx, ecx
mov dword [esp + 0x2b0], ecx
lea edx, [esp + 0x218]
xor eax, eax
mov dword [esp + 0x214], edx
mov word [esp + 0x218], ax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
xor eax, eax
lea edx, [esp + 0x108]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], ecx
mov byte [esp + 0x38], 0xff
mov byte [esp + 0x2c], al
mov byte [esp + 0x3c], al
mov byte [esp + 0x34], al
mov dword [esp + 0x14], ecx
mov dword [esp + 0x104], edx
mov word [esp + 0x108], ax
lea edx, [esp + 0x80]
mov dword [esp + 0x7c], edx
mov word [esp + 0x80], ax
mov byte [esp + 0x2b0], 3
mov dword [esp + 0x10], ecx
mov dword [esp + 0x64], ecx
cmp dword [esp + 0x64], 1
jne 0x45ff43
mov edi, dword [esp + 0x78]
cmp edi, ecx
je 0x460769
cmp word [edi], cx
je 0x460769
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x45ff6f
push eax
call fcn.0049c78c
add esp, 4
xor eax, eax
mov word [esp + 0x108], ax
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x80]
lea edx, [esp + 0x108]
mov dword [esp + 0x104], edx
cmp eax, ecx
je 0x45ff9f
push eax
call fcn.0049c78c
add esp, 4
xor eax, eax
lea edx, [esp + 0x80]
mov dword [esp + 0x7c], edx
mov word [esp + 0x80], ax
movzx eax, word [edi]
test ax, ax
je 0x45ffd5
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x45ffd5
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x45ffc2
movzx eax, word [edi]
test ax, ax
je 0x460025
cmp ax, 0x3d
je 0x460025
cmp ax, 0x20
jbe 0x460025
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x46001d
mov cx, word [edi]
lea eax, [esp + 0x74]
xor edx, edx
push eax
lea ebx, [esp + 0x108]
mov word [esp + 0x78], cx
mov word [esp + 0x7a], dx
call fcn.00451af0
add edi, 2
cmp edi, esi
jb 0x45fff6
movzx eax, word [edi]
test ax, ax
jne 0x45ffdd
movzx eax, word [edi]
test ax, ax
je 0x460046
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x460046
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x460033
mov cx, word [edi]
add edi, 2
cmp cx, 0x3d
jne 0x460769
movzx eax, word [edi]
test ax, ax
je 0x460077
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x460077
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x460064
mov dx, word [edi]
add edi, 2
cmp dx, 0x27
jne 0x460769
movzx eax, word [edi]
test ax, ax
je 0x4600d1
cmp ax, 0x27
je 0x4600d1
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x4600c9
mov ax, word [edi]
lea edx, [esp + 0x70]
xor ecx, ecx
push edx
lea ebx, [esp + 0x80]
mov word [esp + 0x74], ax
mov word [esp + 0x76], cx
call fcn.00451af0
add edi, 2
cmp edi, esi
jb 0x4600a2
movzx eax, word [edi]
test ax, ax
jne 0x46008f
mov ax, word [edi]
add edi, 2
cmp ax, 0x27
jne 0x460769
mov ecx, dword [esp + 0x7c]
movzx esi, word [ecx]
test si, si
je 0x460753
mov ebx, dword [esp + 0x104]
mov ecx, 0x4dea74
mov eax, ebx
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460126
test dx, dx
je 0x460122
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460126
add eax, 4
add ecx, 4
test dx, dx
jne 0x460100
xor eax, eax
jmp 0x46012b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x460645
mov ecx, 0x4dea80
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460166
test dx, dx
je 0x460162
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460166
add eax, 4
add ecx, 4
test dx, dx
jne 0x460140
xor eax, eax
jmp 0x46016b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x460645
mov ecx, str.restype
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4601a6
test dx, dx
je 0x4601a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4601a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x460180
xor eax, eax
jmp 0x4601ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x460281
cmp dword [esp + 0x14], eax
jle 0x460268
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov ebx, dword [esp + 0x90]
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x1d4]
push edx
mov edx, dword [esp + 0x7c]
push eax
call fcn.0045fcd0
add esp, 0x50
mov ecx, dword [esp + 0x7c]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x218]
call fcn.00451c40
jmp 0x46074f
mov ecx, str.dest
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4602ae
test dx, dx
je 0x4602aa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4602ae
add eax, 4
add ecx, 4
test dx, dx
jne 0x460288
xor eax, eax
jmp 0x4602b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x460355
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004a4617
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x3c]
add eax, dword [esi]
add esp, 0xc
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
mov dword [esp + 0x28], eax
call fcn.004a4617
add eax, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x20], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.004a4617
mov ecx, eax
add ecx, dword [esi]
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x24], ecx
cmp ecx, eax
jle 0x460321
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.004a4617
mov ecx, eax
add ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esp + 0x28], ecx
cmp ecx, eax
jle 0x460753
mov dword [esp + 0x28], eax
jmp 0x460753
mov ecx, str.source
mov eax, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460386
test dx, dx
je 0x460382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460386
add eax, 4
add ecx, 4
test dx, dx
jne 0x460360
xor eax, eax
jmp 0x46038b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4603fd
mov edx, dword [esp + 0x7c]
push 0xa
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004a4617
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x40], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.004a4617
add esp, 0xc
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.004a4617
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
mov dword [esp + 0x54], eax
call fcn.004a4617
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x460753
mov ecx, str.corner
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x460480
mov ecx, dword [esp + 0x7c]
push 0xa
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004a4617
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.004a4617
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
mov dword [esp + 0x60], eax
call fcn.004a4617
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x58], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.004a4617
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x460753
mov ecx, str.mask
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x4604db
push 0x10
cmp esi, 0x23
jne 0x4604bd
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.004a4631
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x460753
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004a4631
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x460753
mov ecx, str.fade
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x46050d
mov ecx, dword [esp + 0x7c]
push 0xa
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004a4631
add esp, 0xc
mov byte [esp + 0x38], al
jmp 0x460753
mov ecx, str.hole
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x460575
mov eax, dword [esp + 0x7c]
mov ecx, str.true
jmp 0x460530
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460562
test dx, dx
je 0x460552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460562
add eax, 4
add ecx, 4
test dx, dx
jne 0x460530
xor eax, eax
test eax, eax
sete dl
mov byte [esp + 0x2c], dl
jmp 0x460753
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esp + 0x2c], dl
jmp 0x460753
mov ecx, str.xtiled
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x4605d8
mov eax, dword [esp + 0x7c]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4605c5
test dx, dx
je 0x4605b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4605c5
add eax, 4
add ecx, 4
test dx, dx
jne 0x460593
xor eax, eax
test eax, eax
sete al
mov byte [esp + 0x3c], al
jmp 0x460753
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + 0x3c], al
jmp 0x460753
mov ecx, str.ytiled
lea eax, [esp + 0x104]
call fcn.00451eb0
test al, al
je 0x460753
mov eax, dword [esp + 0x7c]
mov ecx, str.true
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460632
test dx, dx
je 0x460622
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460632
add eax, 4
add ecx, 4
test dx, dx
jne 0x460600
xor eax, eax
test eax, eax
sete cl
mov byte [esp + 0x34], cl
jmp 0x460753
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete cl
mov byte [esp + 0x34], cl
jmp 0x460753
cmp dword [esp + 0x14], 0
jle 0x4606fb
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov ebx, dword [esp + 0x90]
mov dword [eax], edx
mov edx, dword [esp + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x1d4]
push edx
mov edx, dword [esp + 0x7c]
push eax
call fcn.0045fcd0
add esp, 0x50
mov ecx, dword [esp + 0x7c]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x190]
call fcn.00451c40
mov eax, dword [esp + 0x104]
mov ecx, 0x4dea74
jmp 0x460720
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x460746
test dx, dx
je 0x460742
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x460746
add eax, 4
add ecx, 4
test dx, dx
jne 0x460720
xor eax, eax
jmp 0x46074b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x460753
inc dword [esp + 0x14]
mov dx, word [edi]
add edi, 2
cmp dx, 0x20
jne 0x460769
cmp word [edi], 0
jne 0x45ff54
mov eax, dword [esp + 0x64]
inc eax
xor ecx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x14], ecx
cmp eax, 2
jl 0x45ff38
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x40]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x90]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x58]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x50]
push edx
push eax
push ecx
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x258]
push edx
mov edx, dword [esp + 0x78]
lea eax, [esp + 0x1d4]
push eax
push ecx
mov ecx, dword [esp + 0xb8]
call fcn.0045fcd0
mov byte [esp + 0x300], 2
mov eax, dword [esp + 0xcc]
lea edx, [esp + 0xd0]
add esp, 0x50
cmp eax, edx
je 0x46084f
push eax
call fcn.0049c78c
add esp, 4
mov byte [esp + 0x2b0], 1
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x460872
push eax
call fcn.0049c78c
add esp, 4
mov byte [esp + 0x2b0], 0
mov eax, dword [esp + 0x214]
lea edx, [esp + 0x218]
cmp eax, edx
je 0x460895
push eax
call fcn.0049c78c
add esp, 4
mov dword [esp + 0x2b0], 0xffffffff
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x190]
cmp eax, ecx
je 0x4608bb
push eax
call fcn.0049c78c
add esp, 4
mov al, 1
jmp 0x4608c1
xor al, al
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.0049c72a
mov esp, ebp
pop ebp
ret