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

Disassembly:
push 0xffffffffffffffff
push 0x4705fc
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x4878d4]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4878d4]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x29c]
mov ecx, dword [esp + 0x2a0]
mov edx, dword [esp + 0x2a8]
mov esi, dword [esp + 0x2ac]
mov ebp, dword [esp + 0x2a4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x2b0]
push 0xffffffffffffffff
mov dword [esp + 0x40], ecx
push esi
lea ecx, [esp + 0x20c]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
call fcn.00432930
xor ebx, ebx
lea ecx, [esp + 0x180]
mov dword [esp + 0x294], ebx
call fcn.00432000
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 4]
mov dword [esp + 0x40], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xfc]
mov byte [esp + 0x294], 1
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x18], ebx
mov byte [esp + 0x38], 0xff
mov byte [esp + 0x2c], bl
call fcn.00432000
lea ecx, [esp + 0x78]
mov byte [esp + 0x294], 2
call fcn.00432000
xor eax, eax
mov byte [esp + 0x294], 3
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], eax
cmp eax, 1
jne 0x450af4
mov esi, dword [esp + 0x64]
cmp esi, ebx
je 0x450ef9
cmp word [esi], bx
je 0x450ef9
jmp 0x450b10
lea ecx, [esp + 0xfc]
call fcn.00432260
lea ecx, [esp + 0x78]
call fcn.00432260
movzx eax, word [esi]
cmp ax, bx
je 0x450b5f
cmp ax, 0x3d
je 0x450b5f
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp esi, edi
jae 0x450b57
movzx eax, word [esi]
push eax
lea ecx, [esp + 0x100]
call fcn.00432310
add esi, 2
cmp esi, edi
jb 0x450b40
movzx eax, word [esi]
cmp ax, bx
jne 0x450b2d
mov dx, word [esi]
add esi, 2
cmp dx, 0x3d
jne 0x450ef9
mov ax, word [esi]
add esi, 2
cmp ax, 0x27
jne 0x450ef9
movzx eax, word [esi]
cmp ax, bx
je 0x450bbc
cmp ax, 0x27
je 0x450bbc
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp esi, edi
jae 0x450bb4
lea ebx, [ebx]
movzx eax, word [esi]
push eax
lea ecx, [esp + 0x7c]
call fcn.00432310
add esi, 2
cmp esi, edi
jb 0x450ba0
movzx eax, word [esi]
cmp ax, bx
jne 0x450b87
mov cx, word [esi]
add esi, 2
cmp cx, 0x27
jne 0x450ef9
lea ecx, [esp + 0x78]
call fcn.00432250
test al, al
jne 0x450ee4
push str.file
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
jne 0x450ed3
push 0x4784ac
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
jne 0x450ed3
push str.restype
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450c35
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0x184]
jmp 0x450edf
push 0x4784a0
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450cc3
push 0xa
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
call fcn.00432050
push eax
call fcn.0045cd34
mov edx, dword [esp + 0x20]
add eax, dword [ebp]
push 0xa
lea ecx, [esp + 0x24]
push ecx
add edx, 2
push edx
mov dword [esp + 0x58], eax
call fcn.0045cd34
add eax, dword [ebp + 4]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x5c], eax
push 0xa
lea eax, [esp + 0x30]
push eax
add ecx, 2
push ecx
call fcn.0045cd34
add eax, dword [ebp]
push 0xa
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x3c]
push edx
add eax, 2
push eax
call fcn.0045cd34
add esp, 0x30
add eax, dword [ebp + 4]
mov dword [esp + 0x4c], eax
jmp 0x450ee4
push str.source
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450d45
push 0xa
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
call fcn.00432050
push eax
call fcn.0045cd34
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
push 0xa
lea edx, [esp + 0x24]
push edx
add eax, 2
push eax
call fcn.0045cd34
mov edx, dword [esp + 0x2c]
push 0xa
lea ecx, [esp + 0x30]
push ecx
add edx, 2
push edx
mov dword [esp + 0x44], eax
call fcn.0045cd34
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
push 0xa
lea eax, [esp + 0x3c]
push eax
add ecx, 2
push ecx
call fcn.0045cd34
add esp, 0x30
mov dword [esp + 0x28], eax
jmp 0x450ee4
push str.corner
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450dca
push 0xa
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.00432050
push eax
call fcn.0045cd34
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x5c], eax
push 0xa
lea eax, [esp + 0x24]
push eax
add ecx, 2
push ecx
call fcn.0045cd34
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x2c]
push 0xa
lea edx, [esp + 0x30]
push edx
add eax, 2
push eax
call fcn.0045cd34
mov edx, dword [esp + 0x38]
push 0xa
lea ecx, [esp + 0x3c]
push ecx
add edx, 2
push edx
mov dword [esp + 0x88], eax
call fcn.0045cd34
add esp, 0x30
mov dword [esp + 0x5c], eax
jmp 0x450ee4
push str.mask
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450e3a
push ebx
lea ecx, [esp + 0x7c]
call fcn.00432280
push 0x10
cmp ax, 0x23
jne 0x450e17
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x80]
call fcn.00432050
add eax, 2
push eax
call fcn.0045cd5f
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x450ee4
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x80]
call fcn.00432050
push eax
call fcn.0045cd5f
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x450ee4
push str.fade
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450e71
push 0xa
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x80]
call fcn.00432050
push eax
call fcn.0045cd5f
add esp, 0xc
mov byte [esp + 0x38], al
jmp 0x450ee4
push str.hole
lea ecx, [esp + 0x100]
call fcn.004329d0
test al, al
je 0x450ee4
lea ecx, [esp + 0x78]
mov edi, str.true
call fcn.00432050
mov cx, word [eax]
cmp cx, word [edi]
jne 0x450ec3
cmp cx, bx
je 0x450eb6
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x450ec3
add eax, 4
add edi, 4
cmp cx, bx
jne 0x450e94
xor eax, eax
cmp eax, ebx
sete al
mov byte [esp + 0x2c], al
jmp 0x450ee4
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
mov byte [esp + 0x2c], al
jmp 0x450ee4
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x208]
call fcn.00432290
mov dx, word [esi]
add esi, 2
cmp dx, 0x20
jne 0x450ef9
cmp word [esi], bx
jne 0x450b10
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 2
mov dword [esp + 0x34], eax
jl 0x450aeb
lea ecx, [esp + 0x180]
call fcn.00432250
test al, al
je 0x450f23
mov eax, dword [esp + 0x18]
push eax
push ebx
jmp 0x450f35
mov ecx, dword [esp + 0x18]
push ecx
lea ecx, [esp + 0x184]
call fcn.00432050
push eax
lea ecx, [esp + 0x20c]
call fcn.00432050
mov ecx, dword [esp + 0x44]
push eax
call fcn.004358f0
mov esi, eax
cmp esi, ebx
jne 0x450fa7
lea ecx, [esp + 0x78]
mov byte [esp + 0x294], 2
call fcn.00432010
lea ecx, [esp + 0xfc]
mov byte [esp + 0x294], 1
call fcn.00432010
lea ecx, [esp + 0x180]
mov byte [esp + 0x294], bl
call fcn.00432010
lea ecx, [esp + 0x204]
mov dword [esp + 0x294], 0xffffffff
call fcn.00432010
xor al, al
jmp 0x451083
cmp dword [esp + 0x30], ebx
je 0x451032
cmp dword [esp + 0x1c], ebx
jne 0x450fd7
cmp dword [esp + 0x24], ebx
jne 0x450fd7
cmp dword [esp + 0x20], ebx
jne 0x450fd7
cmp dword [esp + 0x28], ebx
jne 0x450fd7
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edi, dword [sym.imp.USER32.dll_IntersectRect]
push ebp
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x70]
push edx
call edi
test eax, eax
je 0x451032
mov ebp, dword [esp + 0x60]
push ebp
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x70]
push ecx
call edi
test eax, eax
je 0x451032
mov edx, dword [esp + 0x2c]
movzx ecx, byte [esi + 0xc]
mov eax, dword [esp + 0x38]
push edx
push eax
push ecx
lea edx, [esp + 0x5c]
push edx
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x44]
push ebp
lea ecx, [esp + 0x58]
push ecx
push edx
push eax
call fcn.0044fcd0
add esp, 0x24
lea ecx, [esp + 0x78]
mov byte [esp + 0x294], 2
call fcn.00432010
lea ecx, [esp + 0xfc]
mov byte [esp + 0x294], 1
call fcn.00432010
lea ecx, [esp + 0x180]
mov byte [esp + 0x294], bl
call fcn.00432010
lea ecx, [esp + 0x204]
mov dword [esp + 0x294], 0xffffffff
call fcn.00432010
mov al, 1
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.004599ea
add esp, 0x284
ret