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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x47fddc
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x49d4b0]
xor eax, esp
mov dword [esp + 0x2d4], eax
push esi
push edi
mov eax, dword [0x49d4b0]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov dword [esp + 0x3c], edx
mov eax, ecx
mov dword [esp + 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], edi
mov dword [esp + 0x4c], ecx
test edx, edx
je 0x436268
test eax, eax
je 0x436268
lea eax, [esp + 0x1d0]
mov dword [esp + 0x1cc], eax
lea ecx, [esp + 0x1cc]
push 0xffffffffffffffff
xor eax, eax
push esi
mov word [esp + 0x1d8], ax
call fcn.0041d6c0
lea eax, [esp + 0x258]
mov dword [esp + 0x2f0], 0
mov dword [esp + 0x254], eax
xor eax, eax
mov word [esp + 0x258], ax
movdqu xmm0, xmmword [edi]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], al
mov byte [esp + 0x2c], al
mov byte [esp + 0x30], al
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc0]
movdqa xmmword [esp + 0x84], xmm0
movdqa xmmword [esp + 0x54], xmm0
xorps xmm0, xmm0
mov dword [esp + 0xbc], eax
xor eax, eax
movdqa xmmword [esp + 0x94], xmm0
movdqa xmmword [esp + 0x74], xmm0
movdqa xmmword [esp + 0xa4], xmm0
movdqa xmmword [esp + 0x64], xmm0
mov byte [esp + 0x24], 0xff
mov word [esp + 0xc0], ax
lea eax, [esp + 0x148]
mov dword [esp + 0x144], eax
xor eax, eax
mov word [esp + 0x148], ax
mov ecx, dword [esp + 0x4c]
mov byte [esp + 0x2f0], 3
mov edi, dword [sym.imp.USER32.dll_CharNextW]
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], eax
cmp eax, 1
cmove esi, ecx
test esi, esi
je 0x43616d
cmp word [esi], 0
je 0x43616d
lea ebx, [ebx]
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x43589b
push eax
call fcn.0045f9a9
add esp, 4
lea eax, [esp + 0xc0]
mov dword [esp + 0xbc], eax
lea ecx, [esp + 0x148]
xor eax, eax
mov word [esp + 0xc0], ax
mov eax, dword [esp + 0x144]
cmp eax, ecx
je 0x4358ce
push eax
call fcn.0045f9a9
add esp, 4
lea eax, [esp + 0x148]
mov dword [esp + 0x144], eax
xor eax, eax
mov word [esp + 0x148], ax
movzx eax, word [esi]
test ax, ax
je 0x435903
mov edi, edi
cmp ax, 0x20
ja 0x435903
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x4358f0
movzx eax, word [esi]
test ax, ax
je 0x43597e
jmp 0x435910
cmp ax, 0x3d
je 0x43597e
cmp ax, 0x20
jbe 0x43597e
push esi
call edi
mov edi, eax
mov dword [esp + 0x14], 0
sub edi, esi
xor ecx, ecx
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x435970
lea esp, [esp]
mov ax, word [esi]
lea ecx, [esp + 0xbc]
mov word [esp + 0x48], ax
xor eax, eax
mov word [esp + 0x4a], ax
lea eax, [esp + 0x48]
push eax
call fcn.0041d590
mov eax, dword [esp + 0x14]
add esi, 2
inc eax
mov dword [esp + 0x14], eax
cmp eax, edi
jb 0x435940
movzx eax, word [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
test ax, ax
jne 0x435910
movzx eax, word [esi]
test ax, ax
je 0x435999
cmp ax, 0x20
ja 0x435999
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x435986
mov ax, word [esi]
add esi, 2
cmp ax, 0x3d
jne 0x43615f
movzx eax, word [esi]
test ax, ax
je 0x4359c4
cmp ax, 0x20
ja 0x4359c4
push esi
call edi
mov esi, eax
movzx eax, word [esi]
test ax, ax
jne 0x4359b1
mov ax, word [esi]
add esi, 2
cmp ax, 0x27
jne 0x43615f
movzx eax, word [esi]
test ax, ax
je 0x435a4e
lea esp, [esp]
cmp ax, 0x27
je 0x435a4e
push esi
call edi
mov edi, eax
mov dword [esp + 0x14], 0
sub edi, esi
xor ecx, ecx
inc edi
shr edi, 1
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x435a40
jmp 0x435a10
mov ax, word [esi]
lea ecx, [esp + 0x144]
mov word [esp + 0x40], ax
xor eax, eax
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
call fcn.0041d590
mov eax, dword [esp + 0x14]
add esi, 2
inc eax
mov dword [esp + 0x14], eax
cmp eax, edi
jb 0x435a10
movzx eax, word [esi]
mov edi, dword [sym.imp.USER32.dll_CharNextW]
test ax, ax
jne 0x4359e0
mov ax, word [esi]
add esi, 2
cmp ax, 0x27
jne 0x43615f
mov eax, dword [esp + 0x144]
movzx edi, word [eax]
test di, di
je 0x436143
mov eax, dword [esp + 0xbc]
mov ecx, 0x490a6c
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435aa6
test dx, dx
je 0x435aa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435aa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435a80
xor eax, eax
jmp 0x435aab
sbb eax, eax
or eax, 1
test eax, eax
je 0x435fc1
mov eax, dword [esp + 0xbc]
mov ecx, 0x490a78
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435ae6
test dx, dx
je 0x435ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435ae6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435ac0
xor eax, eax
jmp 0x435aeb
sbb eax, eax
or eax, 1
test eax, eax
je 0x435fc1
mov eax, dword [esp + 0xbc]
mov ecx, str.restype
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435b26
test dx, dx
je 0x435b22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435b26
add eax, 4
add ecx, 4
test dx, dx
jne 0x435b00
xor eax, eax
jmp 0x435b2b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435bcf
mov edi, dword [esp + 0x18]
test edi, edi
jle 0x435bb0
movdqa xmm0, xmmword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, dword [esp + 0x58]
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqa xmm0, xmmword [esp + 0xc4]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqa xmm0, xmmword [esp + 0xb4]
push dword [esp + 0x60]
push dword [esp + 0x60]
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x28c]
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x5c]
push eax
lea eax, [esp + 0x214]
push eax
push dword [esp + 0x80]
push dword [esp + 0x78]
call fcn.00435540
add esp, 0x54
push 0xffffffffffffffff
push dword [esp + 0x148]
lea ecx, [esp + 0x25c]
call fcn.0041d6c0
inc edi
mov dword [esp + 0x18], edi
jmp 0x436143
mov eax, dword [esp + 0xbc]
mov ecx, str.dest
jmp 0x435be0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435c06
test dx, dx
je 0x435c02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435c06
add eax, 4
add ecx, 4
test dx, dx
jne 0x435be0
xor eax, eax
jmp 0x435c0b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435cb2
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14c]
call fcn.00478943
mov edi, dword [esp + 0x34]
add esp, 0xc
add eax, dword [edi]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add eax, dword [edi + 4]
add esp, 0xc
mov dword [esp + 0x58], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add eax, dword [edi]
add esp, 0xc
cmp eax, dword [edi + 8]
cmovg eax, dword [edi + 8]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add eax, dword [edi + 4]
add esp, 0xc
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x60], eax
cmp eax, ecx
jle 0x435c9e
mov dword [esp + 0x60], ecx
movdqa xmm0, xmmword [esp + 0x54]
movdqa xmmword [esp + 0x84], xmm0
jmp 0x436143
mov eax, dword [esp + 0xbc]
mov ecx, str.source
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435ce6
test dx, dx
je 0x435ce2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435ce6
add eax, 4
add ecx, 4
test dx, dx
jne 0x435cc0
xor eax, eax
jmp 0x435ceb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x435d75
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14c]
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x74], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x78], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
mov dword [esp + 0x8c], eax
add esp, 0xc
movdqa xmm0, xmmword [esp + 0x74]
movdqa xmmword [esp + 0x94], xmm0
jmp 0x436143
push str.corner
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x435e09
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14c]
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x64], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x68], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
add esp, 0xc
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x10]
push 0xa
push eax
mov eax, dword [esp + 0x18]
add eax, 2
push eax
call fcn.00478943
mov dword [esp + 0x7c], eax
add esp, 0xc
movdqa xmm0, xmmword [esp + 0x64]
movdqa xmmword [esp + 0xa4], xmm0
jmp 0x436143
push str.mask
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x435e5e
lea eax, [esp + 0x10]
push 0x10
push eax
cmp edi, 0x23
jne 0x435e46
mov eax, dword [esp + 0x14c]
add eax, 2
push eax
call fcn.0047895b
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x436143
push dword [esp + 0x14c]
call fcn.0047895b
add esp, 0xc
mov dword [esp + 0x1c], eax
jmp 0x436143
push str.fade
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x435e92
push 0xa
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14c]
call fcn.0047895b
add esp, 0xc
mov byte [esp + 0x24], al
jmp 0x436143
push str.hole
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x435ef4
mov eax, dword [esp + 0x144]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435ee3
test dx, dx
je 0x435ed5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435ee3
add eax, 4
add ecx, 4
test dx, dx
jne 0x435eb3
xor eax, eax
test eax, eax
sete byte [esp + 0x20]
jmp 0x436143
sbb eax, eax
or eax, 1
test eax, eax
sete byte [esp + 0x20]
jmp 0x436143
push str.xtiled
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x435f56
mov eax, dword [esp + 0x144]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435f45
test dx, dx
je 0x435f37
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435f45
add eax, 4
add ecx, 4
test dx, dx
jne 0x435f15
xor eax, eax
test eax, eax
sete byte [esp + 0x2c]
jmp 0x436143
sbb eax, eax
or eax, 1
test eax, eax
sete byte [esp + 0x2c]
jmp 0x436143
push str.ytiled
lea ecx, [esp + 0xc0]
call fcn.0041d7a0
test al, al
je 0x436143
mov eax, dword [esp + 0x144]
mov ecx, str.true
jmp 0x435f80
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x435fb0
test dx, dx
je 0x435fa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x435fb0
add eax, 4
add ecx, 4
test dx, dx
jne 0x435f80
xor eax, eax
test eax, eax
sete byte [esp + 0x30]
jmp 0x436143
sbb eax, eax
or eax, 1
test eax, eax
sete byte [esp + 0x30]
jmp 0x436143
cmp dword [esp + 0x18], 0
jle 0x43603d
movdqa xmm0, xmmword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, dword [esp + 0x58]
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqa xmm0, xmmword [esp + 0xc4]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqa xmm0, xmmword [esp + 0xb4]
push dword [esp + 0x60]
push dword [esp + 0x60]
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x28c]
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x5c]
push eax
lea eax, [esp + 0x214]
push eax
push dword [esp + 0x80]
push dword [esp + 0x78]
call fcn.00435540
add esp, 0x54
mov eax, dword [esp + 0x144]
mov edx, 0x488558
test eax, eax
cmovne edx, eax
mov edi, edx
mov dword [esp + 0x50], edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x436057
mov edx, dword [esp + 0x1cc]
sub edi, ecx
sar edi, 1
cmp edi, 0x3f
jge 0x43608f
lea eax, [esp + 0x1d0]
cmp edx, eax
je 0x4360e9
push edx
call fcn.0045f9a9
add esp, 4
lea edx, [esp + 0x1d0]
jmp 0x4360e2
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x14], eax
jmp 0x4360a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4360a0
sub ecx, dword [esp + 0x14]
lea eax, [esp + 0x1d0]
sar ecx, 1
cmp edi, ecx
jg 0x4360c2
cmp edx, eax
jne 0x4360e9
jmp 0x4360c6
cmp edx, eax
jne 0x4360cf
xor edx, edx
mov dword [esp + 0x1cc], edx
lea eax, [edi*2 + 2]
push eax
push edx
call fcn.00471f9d
add esp, 8
mov edx, eax
mov dword [esp + 0x1cc], edx
push edi
push dword [esp + 0x54]
push edx
call fcn.0047d297
mov eax, dword [esp + 0x1d8]
add esp, 0xc
xor ecx, ecx
mov word [eax + edi*2], cx
mov ecx, 0x490a6c
mov eax, dword [esp + 0xbc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x436136
test dx, dx
je 0x436132
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x436136
add eax, 4
add ecx, 4
test dx, dx
jne 0x436110
xor eax, eax
jmp 0x43613b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x436143
inc dword [esp + 0x18]
mov ax, word [esi]
add esi, 2
cmp ax, 0x20
jne 0x43615f
cmp word [esi], 0
mov edi, dword [sym.imp.USER32.dll_CharNextW]
jne 0x435880
mov edi, dword [sym.imp.USER32.dll_CharNextW]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
inc eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x44], eax
cmp eax, 2
jl 0x435862
movdqa xmm0, xmmword [esp + 0xa4]
sub esp, 0x10
mov eax, esp
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, dword [esp + 0x58]
movdqu xmmword [eax], xmm0
mov eax, esp
sub esp, 0x10
movdqa xmm0, xmmword [esp + 0xc4]
movdqu xmmword [eax], xmm0
mov eax, esp
movdqa xmm0, xmmword [esp + 0xb4]
push dword [esp + 0x60]
push dword [esp + 0x60]
movdqu xmmword [eax], xmm0
lea eax, [esp + 0x28c]
push dword [esp + 0x58]
push dword [esp + 0x60]
push dword [esp + 0x5c]
push eax
lea eax, [esp + 0x214]
push eax
push dword [esp + 0x80]
push dword [esp + 0x78]
call fcn.00435540
mov eax, dword [esp + 0x198]
lea ecx, [esp + 0x19c]
add esp, 0x54
cmp eax, ecx
je 0x436213
push eax
call fcn.0045f9a9
add esp, 4
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x43622e
push eax
call fcn.0045f9a9
add esp, 4
mov eax, dword [esp + 0x254]
lea ecx, [esp + 0x258]
cmp eax, ecx
je 0x436249
push eax
call fcn.0045f9a9
add esp, 4
mov eax, dword [esp + 0x1cc]
lea ecx, [esp + 0x1d0]
cmp eax, ecx
je 0x436264
push eax
call fcn.0045f9a9
add esp, 4
mov al, 1
jmp 0x43626a
xor al, al
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
call fcn.0045f8b2
mov esp, ebp
pop ebp
ret