Function at 0x40c970
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x223c
call fcn.0041c820
mov eax, dword [0x437ebc]
push ebx
push ebp
push edi
xor edi, edi
push 0xc20
mov dword [esp + 0x2248], eax
mov ebp, ecx
mov dword [esp + 0x14], edi
call fcn.004291ea
push 0x430b0c
push str.LookALF.cfg
mov dword [ebp + 0x4498], eax
call fcn.0041c182
mov ebx, eax
add esp, 0xc
cmp ebx, edi
mov dword [esp + 0x18], ebx
je 0x40d0dd
push ebx
lea eax, [esp + 0x248]
push 0x7f8
push eax
call fcn.0041c0a6
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x254]
push str._2d_n
push edx
call fcn.0041c195
mov eax, dword [ebp + 0x54]
add esp, 0x18
cmp eax, edi
je 0x40c9f9
mov dword [esp + 0x10], edi
push esi
push ebx
lea eax, [esp + 0x24c]
push 0x7f8
push eax
call fcn.0041c0a6
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jl 0x40d0f5
cmp eax, 0x20
jg 0x40d0f5
cmp eax, edi
mov dword [esp + 0x18], edi
jle 0x40cdc0
lea esi, [esp + 0x50]
mov dword [esp + 0x10], esi
jmp 0x40ca40
mov esi, dword [esp + 0x10]
nop
mov edi, dword [ebp + 0x4498]
xor eax, eax
mov ecx, 0x308
rep stosd dword es:[edi], eax
mov eax, 0x820
jmp 0x40ca60
mov ecx, dword [ebp + 0x4498]
mov dword [eax + ecx], 1
add eax, 4
cmp eax, 0xc20
jl 0x40ca60
push ebx
lea edx, [esp + 0x24c]
push 0x3ff
push edx
call fcn.0041c0a6
add esp, 0xc
lea eax, [esi + 4]
push eax
push esi
lea ecx, [esi - 4]
push ecx
add esi, 0xfffffff8
push esi
push str._4d__4d__4d__4d_n
push str.Window
call fcn.0041b2c3
lea edx, [esp + eax*2 + 0x260]
add esp, 4
push edx
call fcn.0041c195
push ebx
lea eax, [esp + 0x264]
push 0x3ff
push eax
call fcn.0041c0a6
mov ecx, dword [ebp + 0x4498]
add esp, 0x24
add ecx, 0x400
push ecx
push 0x4309ac
push str.ScaleChan
call fcn.0041b2c3
lea edx, [esp + eax*2 + 0x254]
add esp, 4
push edx
call fcn.0041c195
push ebx
lea eax, [esp + 0x1258]
push 0x3ff
push eax
call fcn.0041bf5d
lea eax, [esp + 0x1260]
add esp, 0x18
lea ecx, [eax + 1]
jmp 0x40cb20
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40cb20
sub eax, ecx
lea ecx, [esp + 0x1248]
push ecx
mov word [esp + eax*2 + 0x24a], 0
call fcn.00416d50
push eax
lea edx, [esp + 0x1a50]
push edx
call fcn.0041bcba
lea eax, [esp + 0x1a54]
push 0x27
push eax
call fcn.0041bfe3
add esp, 0x14
test eax, eax
je 0x40cb69
mov word [eax], 0
lea ecx, [esp + 0x1a48]
push 0x27
push ecx
call fcn.0041c1fd
add esp, 8
test eax, eax
je 0x40cb93
add eax, 2
push eax
lea edx, [esp + 0x1a4c]
push edx
call fcn.0041bcba
add esp, 8
push ebx
lea eax, [esp + 0x24c]
push 0x7f8
push eax
call fcn.0041c0a6
push str.Scales
call fcn.0041b2c3
lea ecx, [esp + eax*2 + 0x258]
mov eax, dword [ebp + 0x4498]
lea edx, [eax + 0x818]
push edx
lea edx, [eax + 0x810]
push edx
lea edx, [eax + 0x80c]
push edx
add eax, 0x808
push eax
push str._d__d__lg__lg
push ecx
call fcn.0041c195
push ebx
lea eax, [esp + 0x274]
push 0x7f8
push eax
call fcn.0041c0a6
push str.Colors
call fcn.0041b2c3
add esp, 0x38
lea esi, [esp + eax*2 + 0x248]
mov edi, 0x408
nop
push 0x7c
push esi
call fcn.0041c1fd
add esp, 8
test eax, eax
je 0x40cc39
mov ecx, dword [ebp + 0x4498]
add ecx, edi
push ecx
lea esi, [eax + 2]
push 0x4313b4
push esi
call fcn.0041c195
add esp, 0xc
add edi, 4
cmp edi, 0x808
jl 0x40cc10
push ebx
lea edx, [esp + 0x24c]
push 0x3ff
push edx
call fcn.0041c0a6
lea eax, [esp + 0x254]
push eax
call fcn.0041b2c3
xor edi, edi
push 0x4313a4
mov word [esp + eax*2 + 0x25a], di
call fcn.0041b2c3
add esp, 0x14
lea eax, [esp + eax*2 + 0x248]
mov ecx, dword [ebp + 0x4498]
add ecx, edi
push ecx
lea esi, [eax + 2]
push 0x4309ac
push esi
call fcn.0041c195
push 0x7c
push esi
call fcn.0041c1fd
add esp, 0x14
test eax, eax
je 0x40ccb3
add edi, 4
cmp edi, 0x400
jl 0x40cc82
push ebx
lea edx, [esp + 0x24c]
push 0x3ff
push edx
call fcn.0041c0a6
lea eax, [esp + 0x254]
push eax
call fcn.0041b2c3
push 6
lea ecx, [esp + 0x25c]
push 0x431394
push ecx
mov word [esp + eax*2 + 0x262], 0
call fcn.0041c071
add esp, 0x1c
test eax, eax
jne 0x40cd58
push 0x431394
call fcn.0041b2c3
add esp, 4
lea eax, [esp + eax*2 + 0x248]
mov edi, 0x820
mov edx, dword [ebp + 0x4498]
add edx, edi
push edx
lea esi, [eax + 2]
push 0x4309ac
push esi
call fcn.0041c195
push 0x7c
push esi
call fcn.0041c1fd
add esp, 0x14
test eax, eax
je 0x40cd42
add edi, 4
cmp edi, 0xc20
jl 0x40cd11
push ebx
lea eax, [esp + 0x24c]
push 0x7f8
push eax
call fcn.0041c0a6
add esp, 0xc
push str.TimeScale
call fcn.0041b2c3
mov ecx, dword [ebp + 0x4498]
add ecx, 0x404
push ecx
lea eax, [esp + eax*2 + 0x250]
push 0x4309ac
push eax
call fcn.0041c195
fld qword [0x430e60]
add esp, 8
fstp qword [esp]
push 0xffffffffffffffff
lea edx, [esp + 0x1a54]
push edx
mov ecx, ebp
call fcn.0040c150
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
add edx, 0x10
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
jl 0x40ca3b
xor edi, edi
push ebx
lea eax, [esp + 0x24c]
push 0x3ff
push eax
call fcn.0041c0a6
push 0xd
lea ecx, [esp + 0x258]
push str._HistoryBegin
push ecx
call fcn.0041c071
add esp, 0x18
test eax, eax
jne 0x40d002
mov dword [esp + 0x18], edi
lea esi, [ebp + 0x2a0]
lea esp, [esp]
push ebx
lea edx, [esp + 0x124c]
push 0x3ff
push edx
call fcn.0041bf5d
lea eax, [esp + 0x1254]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ce20
sub eax, edx
push 0xb
mov word [esp + eax*2 + 0x24a], 0
lea eax, [esp + 0x124c]
push str._HistoryEnd
push eax
call fcn.0041bb90
add esp, 0xc
test eax, eax
je 0x40d000
lea ecx, [esp + 0x1248]
push 0x3b
push ecx
call fcn.0041c760
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40d000
inc eax
push 0x3b
push eax
mov dword [esp + 0x30], eax
call fcn.0041c760
add esp, 8
test eax, eax
mov dword [esp + 0x3c], eax
je 0x40d000
inc eax
push 0x3b
push eax
mov dword [esp + 0x38], eax
call fcn.0041c760
add esp, 8
test eax, eax
mov dword [esp + 0x40], eax
je 0x40d000
inc eax
push 0x3b
push eax
mov dword [esp + 0x40], eax
call fcn.0041c760
add esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x40d000
inc eax
push 0x3b
push eax
mov dword [esp + 0x2c], eax
call fcn.0041c760
add esp, 8
test eax, eax
mov dword [esp + 0x44], eax
je 0x40d000
inc eax
push 0x3b
push eax
mov dword [esp + 0x34], eax
call fcn.0041c760
mov edi, eax
add esp, 8
test edi, edi
je 0x40d000
lea ebx, [edi + 1]
push 0x3b
push ebx
call fcn.0041c760
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x1250]
push eax
mov byte [edx], 0
call fcn.00416d50
push eax
lea ecx, [esi - 0x40]
push ecx
call fcn.0041bcba
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x50]
push eax
mov byte [edx], 0
call fcn.00416d50
push eax
push esi
call fcn.0041bcba
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x60]
push edx
mov byte [ecx], 0
call fcn.00416d50
push eax
lea eax, [esi + 0x40]
push eax
call fcn.0041bcba
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x4c]
push edx
mov byte [ecx], 0
call fcn.00416d50
push eax
lea eax, [esi + 0x80]
push eax
call fcn.0041bcba
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x7c]
push edx
mov byte [ecx], 0
call fcn.00416d50
push eax
lea eax, [esi + 0xc0]
push eax
call fcn.0041bcba
mov ecx, dword [esp + 0x70]
add esp, 0x44
push ecx
mov byte [edi], 0
call fcn.00416d50
push eax
lea edx, [esi + 0x100]
push edx
call fcn.0041bcba
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x40cfd7
push ebx
mov byte [eax], 0
call fcn.00416d50
push eax
lea eax, [esi + 0x500]
push eax
call fcn.0041bcba
add esp, 0xc
mov ebx, dword [ebp + 0x4490]
mov eax, dword [esp + 0x18]
inc ebx
inc eax
add esi, 0x584
cmp eax, 0xc
mov dword [ebp + 0x4490], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
jl 0x40ce00
xor edi, edi
push ebx
call fcn.0041b44b
mov ecx, dword [ebp + 0x4498]
push ecx
call fcn.0042921a
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 8
push 0xf
mov dword [ebp + 0x4498], edi
call esi
push 4
mov ebx, eax
call esi
mov esi, dword [esp + 0x2250]
push 3
push esi
add ebx, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x40d0a2
lea edx, [ebp + 0x60]
lea esi, [esp + 0x4c]
mov dword [esp + 0x10], edx
lea esp, [esp]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esi - 4]
push 1
sub edx, eax
push edx
mov edx, dword [esi + 4]
sub edx, ecx
push edx
sub eax, ebx
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_MoveWindow]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc edi
add edx, 4
add esi, 0x10
cmp edi, eax
mov dword [esp + 0x10], edx
jl 0x40d060
mov esi, dword [esp + 0x2250]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x229
push edx
call edi
push eax
mov eax, dword [ebp + 0xc]
push 0
push 0x222
push eax
call edi
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, ebp
call fcn.0040c800
pop esi
mov ecx, dword [esp + 0x2244]
pop edi
pop ebp
pop ebx
call fcn.0041b2b5
add esp, 0x223c
ret 4
mov dword [esp + 0x14], edi
jmp 0x40d002