Function at 0x409390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cba40
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4fd5c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x44], esi
cmp dword [edi + 4], esi
jne 0x40964e
mov eax, dword [ebp + 8]
mov dword [edi + 8], eax
call fcn.00401a20
push 0xffffffffffffffff
add eax, 0x314
mov dword [ebp - 0x14], 0xf
push esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x28], 0
call fcn.00406970
mov dword [ebp - 4], esi
cmp dword [ebp - 0x18], esi
je 0x4094d7
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x40], 0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0040b3e0
mov ebx, dword [ebp - 0x30]
add esp, 8
cmp ebx, 0x64
jbe 0x409486
test ebx, ebx
jne 0x409441
push str.invalid_string_position
call fcn.0049fcab
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
cmp edx, 0x10
cmovae eax, ecx
cmp byte [eax], 0x50
jne 0x40948c
cmp ebx, 1
ja 0x409464
push str.invalid_string_position
call fcn.0049fcab
cmp edx, 0x10
lea eax, [ebp - 0x40]
cmovae eax, ecx
cmp byte [eax + 1], 0x4b
jne 0x40948c
cmp edx, 0x10
lea eax, [ebp - 0x40]
push ebx
cmovae eax, ecx
push eax
call fcn.00412b50
mov dword [edi + 0xc], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x4094d7
lea eax, [edx + 1]
cmp eax, 0x1000
jb 0x4094ce
test byte [ebp - 0x40], 0x1f
je 0x4094aa
call fcn.004a7532
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4094b6
call fcn.004a7532
sub ecx, eax
cmp ecx, 4
jae 0x4094c2
call fcn.004a7532
cmp ecx, 0x23
jbe 0x4094cc
call fcn.004a7532
mov ecx, eax
push ecx
call fcn.004a10ce
add esp, 4
cmp dword [edi + 0xc], 0
jne 0x409540
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00409670
test eax, eax
jne 0x409531
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401c60
mov dword [eax + 0x100], 4
mov dword [eax + 0x104], esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x409529
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00410090
mov esi, dword [ebp - 0x44]
jmp 0x409641
push dword [ebp - 0x48]
mov esi, dword [ebp - 0x44]
push esi
call fcn.00412b50
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x409613
push 0x4cfa88
push dword [edi + 8]
push eax
call fcn.00412c80
test eax, eax
je 0x409613
push 0x4cfaa0
push dword [edi + 8]
call fcn.0041aba0
mov ebx, eax
test ebx, ebx
je 0x409594
call fcn.00401a20
cmp dword [eax + 0x298], 8
lea ecx, [eax + 0x284]
jb 0x40958a
mov ecx, dword [ecx]
mov eax, dword [ebx]
push ecx
push ebx
call dword [eax + 0xa8]
mov ecx, edi
call fcn.00409880
test eax, eax
je 0x40962c
push 0
push dword [edi + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3e8
push 0x64
push dword [edi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], 1
cmp eax, 0x10
jb 0x409641
mov ecx, dword [ebp - 0x28]
inc eax
cmp eax, 0x1000
jb 0x409608
test cl, 0x1f
je 0x4095e4
call fcn.004a7532
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x4095f0
call fcn.004a7532
sub ecx, eax
cmp ecx, 4
jae 0x4095fc
call fcn.004a7532
cmp ecx, 0x23
jbe 0x409606
call fcn.004a7532
mov ecx, eax
push ecx
call fcn.004a10ce
add esp, 4
jmp 0x409641
call fcn.00401c60
mov dword [eax + 0x100], 6
mov dword [eax + 0x104], 0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x409641
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00410090
test esi, esi
je 0x40964e
push esi
call fcn.004a159c
add esp, 4
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a10e1
mov esp, ebp
pop ebp
ret 4