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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59943c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x5fd890]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x5fd890]
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 + 0x60], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], edx
test eax, eax
je 0x437b34
test ecx, ecx
je 0x437b34
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.00417140
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 0x4371cf
mov edi, dword [esp + 0x78]
cmp edi, edx
je 0x437a02
cmp word [edi], dx
je 0x437a02
jmp 0x4371ef
mov esi, dword [sym.imp.USER32.dll_CharNextW]
mov ecx, dword [esp + 0x104]
lea edx, [esp + 0x108]
cmp ecx, edx
je 0x437203
push ecx
call fcn.005668e2
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 0x437233
push eax
call fcn.005668e2
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
jbe 0x437263
cmp ax, 0x20
ja 0x437263
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
ja 0x437250
movzx eax, word [edi]
test ax, ax
je 0x4372b3
cmp ax, 0x3d
je 0x4372b3
cmp ax, 0x20
jbe 0x4372b3
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x4372ab
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.00417000
add edi, 2
cmp edi, esi
jb 0x437284
movzx eax, word [edi]
test ax, ax
jne 0x43726b
movzx eax, word [edi]
test ax, ax
jbe 0x4372d4
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x4372d4
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
ja 0x4372c1
mov dx, word [edi]
add edi, 2
cmp dx, 0x3d
jne 0x4379f9
movzx eax, word [edi]
test ax, ax
jbe 0x437305
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp ax, 0x20
ja 0x437305
push edi
call esi
mov edi, eax
movzx eax, word [edi]
test ax, ax
ja 0x4372f2
mov ax, word [edi]
add edi, 2
cmp ax, 0x27
jne 0x4379f9
movzx eax, word [edi]
test ax, ax
je 0x43735f
cmp ax, 0x27
je 0x43735f
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp edi, esi
jae 0x437357
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.00417000
add edi, 2
cmp edi, esi
jb 0x437330
movzx eax, word [edi]
test ax, ax
jne 0x43731d
mov cx, word [edi]
add edi, 2
cmp cx, 0x27
jne 0x4379f9
mov edx, dword [esp + 0x7c]
movzx esi, word [edx]
test si, si
je 0x4379e3
mov ebx, dword [esp + 0x104]
mov ecx, 0x5d43cc
mov eax, ebx
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4373b6
test dx, dx
je 0x4373b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4373b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x437390
xor eax, eax
jmp 0x4373bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4378d5
mov ecx, 0x5d43d8
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4373f6
test dx, dx
je 0x4373f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4373f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4373d0
xor eax, eax
jmp 0x4373fb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4378d5
mov ecx, str.restype
mov eax, ebx
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437436
test dx, dx
je 0x437432
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437436
add eax, 4
add ecx, 4
test dx, dx
jne 0x437410
xor eax, eax
jmp 0x43743b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x437512
cmp dword [esp + 0x14], eax
jle 0x4374f9
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
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xa8]
push eax
push ecx
push edx
lea eax, [esp + 0x268]
lea ecx, [esp + 0x1e0]
call fcn.00436f00
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x218]
call fcn.00417140
jmp 0x4379df
mov ecx, str.dest
mov eax, ebx
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437546
test dx, dx
je 0x437542
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437546
add eax, 4
add ecx, 4
test dx, dx
jne 0x437520
xor eax, eax
jmp 0x43754b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4375ed
mov edx, dword [esp + 0x7c]
push 0xa
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.005684b7
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.005684b7
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.005684b7
mov ecx, eax
add ecx, dword [esi]
mov eax, dword [esi + 8]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x24], ecx
jle 0x4375b9
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.005684b7
mov ecx, eax
add ecx, dword [esi + 4]
mov eax, dword [esi + 0xc]
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x28], ecx
jle 0x4379e3
mov dword [esp + 0x28], eax
jmp 0x4379e3
mov ecx, str.source
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x43761a
test dx, dx
je 0x437616
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x43761a
add eax, 4
add ecx, 4
test dx, dx
jne 0x4375f4
xor eax, eax
jmp 0x43761f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x437691
mov ecx, dword [esp + 0x7c]
push 0xa
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.005684b7
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.005684b7
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.005684b7
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.005684b7
add esp, 0xc
mov dword [esp + 0x4c], eax
jmp 0x4379e3
mov ecx, str.corner
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x437714
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.005684b7
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.005684b7
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.005684b7
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.005684b7
add esp, 0xc
mov dword [esp + 0x5c], eax
jmp 0x4379e3
mov ecx, str.mask
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x437770
push 0x10
cmp si, 0x23
jne 0x437752
mov edx, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push ecx
add edx, 2
push edx
call fcn.005684e2
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4379e3
mov ecx, dword [esp + 0x80]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.005684e2
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4379e3
mov ecx, str.fade
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x4377a2
mov eax, dword [esp + 0x7c]
push 0xa
lea edx, [esp + 0x14]
push edx
push eax
call fcn.005684e2
add esp, 0xc
mov byte [esp + 0x38], al
jmp 0x4379e3
mov ecx, str.hole
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x437805
mov eax, dword [esp + 0x7c]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4377f2
test dx, dx
je 0x4377e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4377f2
add eax, 4
add ecx, 4
test dx, dx
jne 0x4377c0
xor eax, eax
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4379e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete cl
mov byte [esp + 0x2c], cl
jmp 0x4379e3
mov ecx, str.xtiled
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x437868
mov eax, dword [esp + 0x7c]
mov ecx, str.true
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x437855
test dx, dx
je 0x437845
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x437855
add eax, 4
add ecx, 4
test dx, dx
jne 0x437823
xor eax, eax
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4379e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete dl
mov byte [esp + 0x3c], dl
jmp 0x4379e3
mov ecx, str.ytiled
lea eax, [esp + 0x104]
call fcn.00417230
test al, al
je 0x4379e3
mov eax, dword [esp + 0x7c]
mov ecx, str.true
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4378c2
test dx, dx
je 0x4378b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4378c2
add eax, 4
add ecx, 4
test dx, dx
jne 0x437890
xor eax, eax
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4379e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
mov byte [esp + 0x34], al
jmp 0x4379e3
cmp dword [esp + 0x14], 0
jle 0x43798c
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
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0xac]
push edx
mov edx, dword [esp + 0xa8]
push eax
push ecx
push edx
lea eax, [esp + 0x268]
lea ecx, [esp + 0x1e0]
call fcn.00436f00
add esp, 0x54
mov eax, dword [esp + 0x7c]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x190]
call fcn.00417140
mov eax, dword [esp + 0x104]
mov ecx, 0x5d43cc
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4379d6
test dx, dx
je 0x4379d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4379d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4379b0
xor eax, eax
jmp 0x4379db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4379e3
inc dword [esp + 0x14]
mov cx, word [edi]
add edi, 2
cmp cx, 0x20
jne 0x4379f9
cmp word [edi], 0
jne 0x4371e2
mov ecx, dword [esp + 0x104]
xor edx, edx
mov eax, dword [esp + 0x74]
inc eax
cmp eax, 2
mov dword [esp + 0x74], eax
mov dword [esp + 0x14], edx
jl 0x4371c0
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
mov ecx, dword [esp + 0xa0]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0xac]
push ecx
mov ecx, dword [esp + 0xa8]
push edx
push eax
push ecx
lea eax, [esp + 0x268]
lea ecx, [esp + 0x1e0]
call fcn.00436f00
mov eax, dword [esp + 0xd0]
lea edx, [esp + 0xd4]
add esp, 0x54
cmp eax, edx
je 0x437adf
push eax
call fcn.005668e2
add esp, 4
mov eax, dword [esp + 0x104]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x437afa
push eax
call fcn.005668e2
add esp, 4
mov eax, dword [esp + 0x214]
lea edx, [esp + 0x218]
cmp eax, edx
je 0x437b15
push eax
call fcn.005668e2
add esp, 4
mov eax, dword [esp + 0x18c]
lea ecx, [esp + 0x190]
cmp eax, ecx
je 0x437b30
push eax
call fcn.005668e2
add esp, 4
mov al, 1
jmp 0x437b36
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.00565f92
mov esp, ebp
pop ebp
ret