Function at 0x417aa0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x6c
cmp eax, 0xf020
push ebp
push esi
mov ebp, ecx
je 0x417c82
cmp eax, 0xf120
je 0x417acc
push 0
call fcn.00415c10
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov eax, dword [ebp + 0x18]
xor esi, esi
cmp eax, esi
je 0x417aef
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call dword [0x4895e0]
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x28]
push eax
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
call dword [0x489644]
cmp dword [esp + 0x30], esi
jg 0x417cf9
mov edx, dword [ebp + 4]
push ebx
push edi
push 0xfffffffffffffff0
push edx
call dword [0x48963c]
mov edi, dword [0x489638]
mov ebx, eax
and ebx, 0x40000000
je 0x417b3e
mov eax, dword [ebp + 4]
push eax
call edi
jmp 0x417b4a
mov ecx, dword [ebp + 4]
push 4
push ecx
call dword [0x489640]
mov esi, eax
mov eax, dword [ebp + 4]
lea edx, [esp + 0x40]
push edx
push eax
call dword [0x489644]
test ebx, ebx
jne 0x417bc1
test esi, esi
je 0x417b7c
push 0xfffffffffffffff0
push esi
call dword [0x48963c]
test eax, 0x10000000
je 0x417b7a
test eax, 0x20000000
je 0x417b7c
xor esi, esi
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0x30
call dword [0x489648]
test esi, esi
jne 0x417bb3
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
jmp 0x417bee
lea eax, [esp + 0x10]
push eax
push esi
call dword [0x489644]
jmp 0x417bee
mov ecx, dword [ebp + 4]
push ecx
call edi
mov ebx, dword [0x48965c]
lea edx, [esp + 0x20]
mov edi, eax
push edx
push edi
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x10]
push 2
push ecx
push edi
push esi
call dword [0x489528]
mov ebx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov esi, dword [esp + 0x40]
sub ebx, edx
mov edx, dword [esp + 0x18]
sub edi, esi
add eax, edx
cdq
sub eax, edx
mov ecx, eax
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x14]
add eax, edx
cdq
sub eax, edx
mov esi, eax
mov eax, ebx
cdq
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
mov eax, dword [esp + 0x20]
cmp ecx, eax
jl 0x417c4b
mov eax, dword [esp + 0x28]
lea edx, [ecx + edi]
cmp edx, eax
jle 0x417c4d
sub eax, edi
mov ecx, eax
mov eax, dword [esp + 0x24]
cmp esi, eax
jl 0x417c62
mov eax, dword [esp + 0x2c]
lea edx, [esi + ebx]
cmp edx, eax
jle 0x417c64
sub eax, ebx
mov esi, eax
mov eax, dword [ebp + 4]
push 0x15
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
push 0
push eax
call dword [0x489524]
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x6c
ret 0xc
mov ecx, dword [ebp + 0x31c]
push ecx
call dword [0x489600]
test eax, eax
je 0x417ca1
mov edx, dword [ebp + 4]
push 0
push edx
call dword [0x489544]
jmp 0x417cc2
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x417cc2
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
push ecx
mov ecx, dword [ebp + 4]
push edx
mov edx, dword [ebp + 0x1c]
push eax
push ecx
push edx
call dword [0x4895e0]
mov eax, dword [ebp + 0x4f4]
test eax, eax
je 0x417cf9
mov ecx, dword [ebp + 4]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [0x4895bc]
mov dword [ebp + 0x4f4], 0
xor edx, edx
add ebp, 0x4f8
mov dword [ebp], edx
mov dword [ebp + 4], edx
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], edx
pop esi
pop ebp
add esp, 0x6c
ret 0xc