Function at 0x4115b0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4115cc
mov dword [esi + 0x474], 1
xor eax, eax
pop esi
add esp, 0x1c
ret
mov eax, dword [esi + 0xdb4]
test eax, eax
jne 0x4115f3
mov eax, dword [esi + 0x948]
test eax, eax
jl 0x411619
cmp eax, dword [esi + 0x1cd8]
jge 0x411619
mov ecx, dword [esi + 0x1cd4]
lea eax, [eax + eax*2]
jmp 0x41160e
mov eax, dword [esi + 0x93c]
test eax, eax
jl 0x411619
cmp eax, dword [esi + 0x1cec]
jge 0x411619
mov ecx, dword [esi + 0x1ce8]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4]
mov ecx, esi
push edx
call fcn.0040c3f0
mov eax, dword [esi + 0xdb4]
test eax, eax
je 0x41193f
push ebp
push edi
push 0
push eax
mov ecx, esi
call fcn.00411280
mov eax, dword [esi + 0xdb4]
mov ecx, esi
push eax
call fcn.004112e0
mov eax, dword [esi + 0xdb4]
mov ebp, dword [0x48a59c]
cmp eax, 5
ja case.default.0x411656
jmp dword [eax*4 + 0x411954]
mov ecx, dword [esi + 0x2038]
push 5
push ecx
call ebp
mov edx, dword [esi + 0x269c]
push 0
push edx
call ebp
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 0
push eax
call ebp
jmp case.default.0x411656
mov ecx, dword [esi + 0x2038]
push 0
push ecx
call ebp
mov edx, dword [esi + 0x269c]
push 0
push edx
call ebp
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 5
push eax
call ebp
jmp case.default.0x411656
mov ecx, dword [esi + 0x2038]
push 0
push ecx
call ebp
mov edx, dword [esi + 0x269c]
push 5
push edx
call ebp
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0x2698]
push 0
push eax
call ebp
mov ecx, esi
call fcn.0040eb10
jmp case.default.0x411656
mov ecx, dword [esi + 0x2038]
push 0
push ecx
call ebp
mov edx, dword [esi + 0x269c]
push 5
push edx
call ebp
push 5
jmp 0x41172c
mov eax, dword [esi + 0x2038]
push 5
push eax
call ebp
mov ecx, dword [esi + 0x269c]
push 0
push ecx
call ebp
push 0
call fcn.00437940
mov ecx, eax
call fcn.00438800
mov eax, dword [esi + 0xdb4]
push 0xffff
cmp eax, 4
jne 0x41174c
push 3
jmp 0x41174d
push eax
mov ecx, esi
call fcn.004092d0
cmp dword [esi + 0xdb4], 4
jne 0x411787
push 0
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.0040f310
mov edx, dword [esi + 0x4e0]
push 0
push edx
push 4
mov ecx, esi
call fcn.00407e00
push 4
push 0x42
mov ecx, esi
call fcn.00407eb0
mov edx, dword [esi + 0x2270]
xor eax, eax
test edx, edx
push ebx
jle 0x4117b0
mov ecx, dword [esi + 0x226c]
mov di, word [esi + 0xdb4]
mov ebx, dword [ecx]
cmp word [ebx], di
je 0x411819
inc eax
add ecx, 4
cmp eax, edx
jl 0x4117a1
xor eax, eax
mov ecx, dword [esi + 0xdb4]
push 0
push eax
push ecx
call fcn.004219d0
mov ecx, eax
call fcn.00421cd0
mov edx, dword [esi + 0xdb4]
push edx
call fcn.00426030
mov ecx, eax
call fcn.004264c0
mov ax, word [esi + 0xdb4]
mov ebx, dword [0x48a598]
mov word [esp + 0x18], ax
mov eax, dword [esi + 0x2270]
xor edi, edi
test eax, eax
jle 0x411838
mov ecx, dword [esi + 0x226c]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
push eax
call ebx
test eax, eax
jne 0x411828
mov eax, dword [esi + 0x2270]
inc edi
cmp edi, eax
jl 0x4117f9
jmp 0x411838
mov ecx, dword [esi + 0x226c]
mov eax, dword [ecx + eax*4]
mov ax, word [eax + 2]
jmp 0x4117b2
mov ecx, dword [esi + 0x226c]
mov edx, dword [ecx + edi*4]
mov eax, dword [edx + 4]
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x10]
push edi
call ebx
test eax, eax
je 0x4118eb
lea ecx, [esp + 0x1c]
push ecx
push edi
call dword [0x48a590]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push 0
sub ebx, ecx
push 0x20
sub edi, edx
push 1
push ebx
push edi
call dword [0x48a038]
mov edx, dword [esi + 0x225c]
push eax
push edx
mov dword [esp + 0x1c], eax
call dword [0x48a03c]
mov eax, dword [esp + 0x14]
push eax
call dword [0x48a048]
mov ecx, dword [esi + 0x225c]
mov edx, dword [esp + 0x10]
push 1
push ecx
push edx
call dword [0x48a574]
mov eax, dword [esp + 0x20]
mov edx, dword [esi + 0x2258]
mov ecx, dword [esp + 0x1c]
push 4
push ebx
push edi
push eax
mov eax, dword [edx + 0x1c]
push ecx
push 0
push eax
call dword [0x48a594]
xor ecx, ecx
push ebx
push edi
xor eax, eax
push ecx
mov ecx, dword [esi + 0x225c]
push eax
push ecx
mov ecx, dword [esi + 0x2258]
call fcn.0043d220
mov ecx, dword [esi + 0x2258]
call fcn.00446c20
mov eax, dword [esi + 0x2270]
xor edi, edi
test eax, eax
pop ebx
jle 0x411926
mov edx, dword [esi + 0x226c]
mov cx, word [esp + 0x14]
mov eax, dword [edx + edi*4]
cmp word [eax], cx
jne 0x411913
mov edx, dword [eax + 4]
push 5
push edx
jmp 0x411919
mov eax, dword [eax + 4]
push 0
push eax
call ebp
mov eax, dword [esi + 0x2270]
inc edi
cmp edi, eax
jl 0x4118f8
mov ecx, dword [esi + 0xdb4]
push ecx
mov ecx, esi
call fcn.0040b7a0
pop edi
pop ebp
test eax, eax
jne 0x41193f
pop esi
add esp, 0x1c
ret
mov dword [esi + 0x474], 1
mov eax, 1
pop esi
add esp, 0x1c
ret