Function at 0x477650
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x638]
lea ebp, [edi + 0x638]
test eax, eax
mov dword [esp + 0x18], ebp
je 0x477676
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4ecb68]
test eax, eax
jne 0x477ad8
mov ecx, edi
call fcn.0046c2f0
mov edx, dword [0x4ecb68]
lea eax, [esp + 0x10]
inc edx
push eax
mov dword [0x4ecb68], edx
call fcn.00477410
lea ecx, [esp + 0x28]
push 0xbf
push ecx
call fcn.0048eb30
mov eax, dword [eax]
mov edx, dword [edi + 0x3258]
push eax
mov eax, dword [edi + 0xb4]
push edx
push eax
call fcn.004624d0
mov eax, dword [esp + 0x3c]
mov edx, dword [0x4d9544]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x18
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4776fa
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4776fa
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
push 0x4dcaa0
push ecx
mov ecx, esp
push str.m_start_info
call fcn.004014f0
push ecx
mov ecx, esp
push 0x4d9dd0
call fcn.004014f0
call fcn.004554a0
mov eax, dword [0x4dcaa0]
add esp, 0xc
test eax, eax
jne 0x477765
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x477ad8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x477ad8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp dword [ebp], 0
jne 0x477aaa
push 0x64
call fcn.004c58a5
mov esi, eax
add esp, 4
test esi, esi
je 0x4777c7
mov ecx, esi
call fcn.0040bbf0
lea ebx, [esi + 0x20]
mov dword [esi + 0x1c], 0x4d3910
mov ecx, ebx
call fcn.00479d10
xor eax, eax
mov dword [esp + 0x24], esi
mov dword [esi + 0x4c], eax
mov ecx, dword [0x4d9540]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x5c], eax
mov dword [esi], 0x4d4488
mov dword [esi + 0x1c], 0x4d4484
mov dword [ebx], 0x4d4464
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
jmp 0x4777cf
mov dword [esp + 0x24], 0
mov esi, dword [esp + 0x24]
mov edi, dword [edi + 4]
push esi
lea edx, [esi + 8]
push edx
push 0x4edfe0
call fcn.0040bbb0
mov eax, dword [0x4edfe8]
push 0
push 0x410630
push edi
push 0x153
push eax
call fcn.00440320
test esi, esi
je 0x477806
lea eax, [esi + 4]
jmp 0x477808
xor eax, eax
mov ecx, dword [eax]
mov eax, str.INFO2018
push ecx
mov dword [ebp], ecx
mov edx, dword [0x4d9540]
mov esi, esp
test eax, eax
mov dword [esi], edx
je 0x477855
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
je 0x477855
push edi
mov ecx, esi
call fcn.004012f0
test eax, eax
je 0x477855
mov ecx, dword [esi]
inc edi
push edi
push str.INFO2018
push ecx
call fcn.004011c0
add esp, 0xc
mov ecx, esi
push 0xffffffffffffffff
call fcn.00401970
lea edx, [esp + 0x20]
push edx
call fcn.0047fd80
mov eax, 0x4d9a34
add esp, 8
test eax, eax
je 0x477ae4
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x477ae4
mov ecx, str._br__r_n
test ecx, ecx
jne 0x477891
mov dword [esp + 0x14], ecx
jmp 0x47789c
push str._br__r_n
call esi
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov edx, dword [esi - 8]
lea ebp, [esi + edx*2]
cmp esi, ebp
jae 0x477a1a
push 0x4d9a34
push esi
call fcn.004c546f
add esp, 8
test eax, eax
je 0x4778d8
lea esi, [eax + ebx*2]
push 0x4d9a34
push esi
inc edi
call fcn.004c546f
add esp, 8
test eax, eax
jne 0x4778c2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebp
jb 0x4778b0
test edi, edi
jle 0x477ae0
lea ecx, [esp + 0x10]
call fcn.00401380
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub ebp, ebx
imul ebp, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x20], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x2c], ebp
cmp eax, ebp
jl 0x47791f
cmp dword [esi - 0xc], 1
jle 0x47795d
lea edi, [esi - 0xc]
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.004012f0
test eax, eax
je 0x477ae0
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x10]
shl ecx, 1
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
push ecx
call fcn.00401350
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x30], eax
jae 0x477a13
push 0x4d9a34
push esi
call fcn.004c546f
mov edi, eax
add esp, 8
test edi, edi
je 0x4779f8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x20]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebx
ret
lea ecx, [edi + ebx*2]
lea ebp, [eax + eax]
lea eax, [esi + edi]
push ebp
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.004c5570
mov ecx, esi
mov esi, str._br__r_n
mov edx, ecx
mov eax, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebx
and ecx, 3
push 0x4d9a34
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x38]
push esi
mov word [esi + ebp], 0
mov ebp, dword [esp + 0x34]
add ebp, eax
mov dword [esp + 0x34], ebp
call fcn.004c546f
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x477983
mov ebp, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp esi, eax
jb 0x47796f
mov esi, dword [esp + 0x10]
mov dword [esi - 8], ebp
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push esi
push str.INFO
lea ecx, [esp + 0x24]
call fcn.0040fcd0
push str._Ver.
lea ecx, [esp + 0x24]
call fcn.004014f0
lea ecx, [esp + 0x20]
push 0x4ecd40
push ecx
lea edx, [esp + 0x34]
push 0x4ecd48
push edx
call fcn.0040f0a0
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0040f0a0
mov ecx, dword [eax]
push ecx
push str.PROGRAM
lea ecx, [esp + 0x24]
call fcn.0040fcd0
lea ecx, [esp + 0x30]
call fcn.004014c0
lea ecx, [esp + 0x2c]
call fcn.004014c0
lea ecx, [esp + 0x20]
call fcn.004014c0
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
push edx
call fcn.00401200
mov ecx, dword [esp + 0x28]
call fcn.00478330
lea ecx, [esp + 0x1c]
call fcn.004014c0
mov eax, dword [ebp]
push 0x40
push 0x168
push 0x262
push 0x28
push 0x28
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
mov ecx, ebp
call fcn.00478530
lea ecx, [esp + 0x10]
call fcn.004014c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
jmp 0x477a1e