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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b33ec
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x4d897c]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x4d897c]
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 + 0x64], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x60], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], edx
test eax, eax
je 0x411704
test ecx, ecx
je 0x411704
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.0041a260
xor edx, edx
mov dword [esp + 0x2b0], edx
lea eax, [esp + 0x218]
xor ecx, ecx
mov dword [esp + 0x214], eax
mov word [esp + 0x218], cx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x108]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x38], 0xff
mov byte [esp + 0x2c], al
mov byte [esp + 0x3c], al
mov byte [esp + 0x34], al
mov dword [esp + 0x14], edx
mov dword [esp + 0x104], ecx
mov word [esp + 0x108], ax
lea eax, [esp + 0x80]
mov dword [esp + 0x7c], eax
xor eax, eax
mov word [esp + 0x80], ax
mov byte [esp + 0x2b0], 3
mov dword [esp + 0x10], edx
mov dword [esp + 0x74], eax
lea ebx, [ebx]
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp eax, 1
jne 0x410d9f
mov edi, dword [esp + 0x78]
cmp edi, edx
je 0x4115d2
cmp word [edi], dx
je 0x4115d2
jmp 0x410dbf
mov esi, dword [sym.imp.USER32.dll_CharNextW]
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x108]
cmp ecx, edx
je 0x410dd3
push ecx
call fcn.004964ad
add esp, 4
lea eax, [esp + 0x108]
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x7c]
xor ecx, ecx
lea edx, [esp + 0x80]
mov word [esp + 0x108], cx
cmp eax, edx
je 0x410e03
push eax
call fcn.004964ad
add esp, 4
lea eax, [esp + 0x80]
xor ecx, ecx
mov dword [esp + 0x7c], eax
mov word [esp + 0x80], cx
movzx eax, word [edi]
test ax, ax
je 0x410e33
cmp ax, 0x20
ja 0x410e33
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x410e20
movzx eax, word [edi]
test ax, ax
je 0x410e83
cmp ax, 0x3d
je 0x410e83
cmp ax, 0x20
jbe 0x410e83
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x410e7b
mov dx, word [edi]
lea ecx, [esp + 0x6c]
xor eax, eax
push ecx
lea ebx, [esp + 0x108]
mov word [esp + 0x70], dx
mov word [esp + 0x72], ax
call fcn.0041a110
add edi, 2
cmp edi, esi
jb 0x410e54
movzx eax, word [edi]
test ax, ax
jne 0x410e3b
movzx eax, word [edi]
test ax, ax
je 0x410ea4
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x410ea4
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x410e91
mov dx, word [edi]
add edi, 2
cmp dx, 0x3d
jne 0x4115c9
movzx eax, word [edi]
test ax, ax
je 0x410ed5
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x410ed5
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x410ec2
mov ax, word [edi]
add edi, 2
cmp ax, 0x27
jne 0x4115c9
movzx eax, word [edi]
test ax, ax
je 0x410f2f
cmp ax, 0x27
je 0x410f2f
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x410f27
mov cx, word [edi]
lea eax, [esp + 0x70]
xor edx, edx
push eax
lea ebx, [esp + 0x80]
mov word [esp + 0x74], cx
mov word [esp + 0x76], dx
call fcn.0041a110
add edi, 2
cmp edi, esi
jb 0x410f00
movzx eax, word [edi]
test ax, ax
jne 0x410eed
mov cx, word [edi]
add edi, 2
cmp cx, 0x27
jne 0x4115c9
mov edx, dword [esp + 0x7c]
movzx esi, word [edx]
test si, si
je 0x4115b3
mov ebx, dword [esp + 0x104]
mov ecx, 0x4c1534
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410f86
test dx, dx
je 0x410f82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410f86
add eax, 4
add ecx, 4
test dx, dx
jne 0x410f60
xor eax, eax
jmp 0x410f8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4114a5
mov ecx, 0x4c1540
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x410fc6
test dx, dx
je 0x410fc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x410fc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x410fa0
xor eax, eax
jmp 0x410fcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4114a5
mov ecx, str.restype
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411006
test dx, dx
je 0x411002
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411006
add eax, 4
add ecx, 4
test dx, dx
jne 0x410fe0
xor eax, eax
jmp 0x41100b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4110e5
cmp dword [esp + 0x14], eax
jle 0x4110cc
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 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 + 0xa8]
lea edx, [esp + 0x258]
push edx
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x1d4]
push eax
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0x84]
call fcn.00410aa0
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x218]
call fcn.0041a260
jmp 0x4115af
mov ecx, str.dest
mov eax, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411116
test dx, dx
je 0x411112
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411116
add eax, 4
add ecx, 4
test dx, dx
jne 0x4110f0
xor eax, eax
jmp 0x41111b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4111bd
mov edx, dword [esp + 0x7c]
push 0xa
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00495519
mov esi, dword [esp + 0x3c]
add eax, dword [esi]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x1c], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.00495519
add eax, dword [esi + 4]
add esp, 0xc
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.00495519
mov ecx, eax
add ecx, dword [esi]
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x24], ecx
cmp ecx, eax
jle 0x411189
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x10]
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
call fcn.00495519
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 0x4115b3
mov dword [esp + 0x28], eax
jmp 0x4115b3
mov ecx, str.source
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4111ea
test dx, dx
je 0x4111e6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4111ea
add eax, 4
add ecx, 4
test dx, dx
jne 0x4111c4
xor eax, eax
jmp 0x4111ef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x411261
mov ecx, dword [esp + 0x7c]
push 0xa
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00495519
add esp, 0xc
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.00495519
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
mov dword [esp + 0x50], eax
call fcn.00495519
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x48], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.00495519
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x4115b3
mov ecx, str.corner
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x4112e4
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00495519
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0xa
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
mov dword [esp + 0x5c], eax
call fcn.00495519
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x54], eax
push 0xa
lea eax, [esp + 0x14]
push eax
add ecx, 2
push ecx
call fcn.00495519
add esp, 0xc
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x10]
push 0xa
lea edx, [esp + 0x14]
push edx
add eax, 2
push eax
call fcn.00495519
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4115b3
mov ecx, str.mask
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x41133f
push 0x10
cmp esi, 0x23
jne 0x411321
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
call fcn.00495533
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4115b3
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00495533
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4115b3
mov ecx, str.fade
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x411371
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00495533
add esp, 0xc
mov byte [esp + 0x38], al
jmp 0x4115b3
mov ecx, str.hole
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x4113d5
mov eax, dword [esp + 0x7c]
mov ecx, str.true
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4113c2
test dx, dx
je 0x4113b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4113c2
add eax, 4
add ecx, 4
test dx, dx
jne 0x411390
xor eax, eax
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4115b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4115b3
mov ecx, str.xtiled
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x411438
mov eax, dword [esp + 0x7c]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411425
test dx, dx
je 0x411415
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411425
add eax, 4
add ecx, 4
test dx, dx
jne 0x4113f3
xor eax, eax
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4115b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4115b3
mov ecx, str.ytiled
lea eax, [esp + 0x104]
call fcn.0041a3b0
test al, al
je 0x4115b3
mov eax, dword [esp + 0x7c]
mov ecx, str.true
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x411492
test dx, dx
je 0x411482
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x411492
add eax, 4
add ecx, 4
test dx, dx
jne 0x411460
xor eax, eax
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4115b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4115b3
cmp dword [esp + 0x14], 0
jle 0x41155f
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 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 + 0xa8]
lea edx, [esp + 0x258]
push edx
mov edx, dword [esp + 0xb0]
lea eax, [esp + 0x1d4]
push eax
push ecx
mov ecx, dword [esp + 0xb0]
push edx
mov edx, dword [esp + 0x84]
call fcn.00410aa0
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x190]
call fcn.0041a260
mov eax, dword [esp + 0x104]
mov ecx, 0x4c1534
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4115a6
test dx, dx
je 0x4115a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4115a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411580
xor eax, eax
jmp 0x4115ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4115b3
inc dword [esp + 0x14]
mov cx, word [edi]
add edi, 2
cmp cx, 0x20
jne 0x4115c9
cmp word [edi], 0
jne 0x410db2
mov ecx, dword [esp + 0x104]
xor edx, edx
mov eax, dword [esp + 0x74]
inc eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], edx
cmp eax, 2
jl 0x410d90
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 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 + 0xa8]
lea ecx, [esp + 0x258]
push ecx
mov ecx, dword [esp + 0xb0]
lea edx, [esp + 0x1d4]
push edx
mov edx, dword [esp + 0x7c]
push eax
push ecx
mov ecx, dword [esp + 0xb4]
call fcn.00410aa0
mov eax, dword [esp + 0xd0]
lea edx, [esp + 0xd4]
add esp, 0x54
cmp eax, edx
je 0x4116af
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x4116ca
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x214]
lea edx, [esp + 0x218]
cmp eax, edx
je 0x4116e5
push eax
call fcn.004964ad
add esp, 4
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x190]
cmp eax, ecx
je 0x411700
push eax
call fcn.004964ad
add esp, 4
mov al, 1
jmp 0x411706
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.00494bb0
mov esp, ebp
pop ebp
ret