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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5297cc
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x581980]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x581980]
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 + 0x68], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], edx
test eax, eax
je 0x427507
test ecx, ecx
je 0x427507
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.0040a8e0
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 0x426b9f
mov edi, dword [esp + 0x78]
cmp edi, edx
je 0x4273d2
cmp word [edi], dx
je 0x4273d2
jmp 0x426bbf
mov esi, dword [sym.imp.USER32.dll_CharNextW]
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x108]
cmp ecx, edx
je 0x426bd3
push ecx
call fcn.004f3161
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 0x426c03
push eax
call fcn.004f3161
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 0x426c33
cmp ax, 0x20
ja 0x426c33
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x426c20
movzx eax, word [edi]
test ax, ax
je 0x426c83
cmp ax, 0x3d
je 0x426c83
cmp ax, 0x20
jbe 0x426c83
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x426c7b
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.0040a790
add edi, 2
cmp edi, esi
jb 0x426c54
movzx eax, word [edi]
test ax, ax
jne 0x426c3b
movzx eax, word [edi]
test ax, ax
je 0x426ca4
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x426ca4
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x426c91
mov dx, word [edi]
add edi, 2
cmp dx, 0x3d
jne 0x4273c9
movzx eax, word [edi]
test ax, ax
je 0x426cd5
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x426cd5
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
jne 0x426cc2
mov ax, word [edi]
add edi, 2
cmp ax, 0x27
jne 0x4273c9
movzx eax, word [edi]
test ax, ax
je 0x426d2f
cmp ax, 0x27
je 0x426d2f
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x426d27
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.0040a790
add edi, 2
cmp edi, esi
jb 0x426d00
movzx eax, word [edi]
test ax, ax
jne 0x426ced
mov cx, word [edi]
add edi, 2
cmp cx, 0x27
jne 0x4273c9
mov edx, dword [esp + 0x7c]
movzx esi, word [edx]
test si, si
je 0x4273b3
mov ebx, dword [esp + 0x104]
mov ecx, 0x56893c
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426d86
test dx, dx
je 0x426d82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426d86
add eax, 4
add ecx, 4
test dx, dx
jne 0x426d60
xor eax, eax
jmp 0x426d8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4272a5
mov ecx, 0x568948
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426dc6
test dx, dx
je 0x426dc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426dc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x426da0
xor eax, eax
jmp 0x426dcb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4272a5
mov ecx, str.restype
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426e06
test dx, dx
je 0x426e02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426e06
add eax, 4
add ecx, 4
test dx, dx
jne 0x426de0
xor eax, eax
jmp 0x426e0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x426ee5
cmp dword [esp + 0x14], eax
jle 0x426ecc
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 + 0x80]
push edx
mov edx, dword [esp + 0xb4]
call fcn.00426890
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x218]
call fcn.0040a8e0
jmp 0x4273af
mov ecx, str.dest
mov eax, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426f16
test dx, dx
je 0x426f12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426f16
add eax, 4
add ecx, 4
test dx, dx
jne 0x426ef0
xor eax, eax
jmp 0x426f1b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x426fbd
mov edx, dword [esp + 0x7c]
push 0xa
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.004f3fe9
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.004f3fe9
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.004f3fe9
mov ecx, eax
add ecx, dword [esi]
mov eax, dword [esi + 8]
add esp, 0xc
mov dword [esp + 0x24], ecx
cmp ecx, eax
jle 0x426f89
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.004f3fe9
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 0x4273b3
mov dword [esp + 0x28], eax
jmp 0x4273b3
mov ecx, str.source
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x426fea
test dx, dx
je 0x426fe6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x426fea
add eax, 4
add ecx, 4
test dx, dx
jne 0x426fc4
xor eax, eax
jmp 0x426fef
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x427061
mov ecx, dword [esp + 0x7c]
push 0xa
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004f3fe9
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.004f3fe9
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.004f3fe9
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.004f3fe9
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x4273b3
mov ecx, str.corner
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x4270e4
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004f3fe9
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.004f3fe9
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.004f3fe9
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.004f3fe9
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4273b3
mov ecx, str.mask
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x42713f
push 0x10
cmp esi, 0x23
jne 0x427121
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
call fcn.004f4003
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4273b3
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.004f4003
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4273b3
mov ecx, str.fade
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x427171
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004f4003
add esp, 0xc
mov byte [esp + 0x38], al
jmp 0x4273b3
mov ecx, str.hole
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x4271d5
mov eax, dword [esp + 0x7c]
mov ecx, 0x565954
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4271c2
test dx, dx
je 0x4271b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4271c2
add eax, 4
add ecx, 4
test dx, dx
jne 0x427190
xor eax, eax
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4273b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4273b3
mov ecx, str.xtiled
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x427238
mov eax, dword [esp + 0x7c]
mov ecx, 0x565954
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427225
test dx, dx
je 0x427215
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427225
add eax, 4
add ecx, 4
test dx, dx
jne 0x4271f3
xor eax, eax
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4273b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4273b3
mov ecx, str.ytiled
lea eax, [esp + 0x104]
call fcn.0040a9b0
test al, al
je 0x4273b3
mov eax, dword [esp + 0x7c]
mov ecx, 0x565954
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x427292
test dx, dx
je 0x427282
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x427292
add eax, 4
add ecx, 4
test dx, dx
jne 0x427260
xor eax, eax
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4273b3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4273b3
cmp dword [esp + 0x14], 0
jle 0x42735f
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 + 0x80]
push edx
mov edx, dword [esp + 0xb4]
call fcn.00426890
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x190]
call fcn.0040a8e0
mov eax, dword [esp + 0x104]
mov ecx, 0x56893c
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4273a6
test dx, dx
je 0x4273a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4273a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x427380
xor eax, eax
jmp 0x4273ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4273b3
inc dword [esp + 0x14]
mov cx, word [edi]
add edi, 2
cmp cx, 0x20
jne 0x4273c9
cmp word [edi], 0
jne 0x426bb2
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 0x426b90
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 + 0xac]
push eax
push ecx
mov ecx, dword [esp + 0x84]
call fcn.00426890
mov eax, dword [esp + 0xd0]
lea edx, [esp + 0xd4]
add esp, 0x54
cmp eax, edx
je 0x4274b2
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x4274cd
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0x214]
lea edx, [esp + 0x218]
cmp eax, edx
je 0x4274e8
push eax
call fcn.004f3161
add esp, 4
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x190]
cmp eax, ecx
je 0x427503
push eax
call fcn.004f3161
add esp, 4
mov al, 1
jmp 0x427509
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.004f2889
mov esp, ebp
pop ebp
ret