Function at 0x4f51c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5343d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x559024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0x8102
lea eax, [ebp - 0x3c]
mov edi, edx
push eax
mov ecx, 0x55a400
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], edi
call fcn.00467b90
mov dword [ebp - 4], 0
lea esi, [ebx + 0x14]
test edi, edi
je 0x4f5246
push 0x3ec
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4f5232
push 0x3ec
push edi
mov edi, eax
call fcn.0042dc20
jmp 0x4f5256
mov ecx, dword [esi + 0x10]
mov edx, dword [ecx + 4]
lea esi, [edx + esi + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4f5256
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea esi, [ecx + esi + 0x10]
mov dword [esi], 0x57
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4f5262
mov ecx, 0x538640
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4f528b
test ecx, ecx
je 0x4f528b
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x4f5299
mov edx, dword [ebx + 0x24]
mov edi, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + ebx + 0x24], eax
jmp 0x4f5299
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x24], 0x57
mov eax, dword [ebx + 0xdf4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4f5713
lea ecx, [eax + 0x130]
lea edx, [eax + 0x1b4]
mov dword [ebp - 0x40], ecx
lea ecx, [eax + 0x1c]
mov dword [ebx + 0xdfc], edx
lea edx, [eax + 0xe04]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
test ecx, ecx
je 0x4f52d8
mov dword [ebx + 0xdf8], ecx
lea edi, [ebx + 0xc8]
mov ebx, dword [ebp - 0x18]
push 0x4b0
push ebx
mov ecx, edi
mov dword [edi + 0x410], eax
mov dword [edi + 0x618], eax
mov dword [edi + 0x7b8], eax
mov dword [edi + 0x97c], eax
call fcn.004755a0
push 0
push edi
call fcn.004756c0
mov esi, ebx
push esi
mov ebx, edi
call fcn.004757e0
push esi
push edi
call fcn.00475960
push esi
push edi
call fcn.00475ef0
push 1
push esi
push edi
call fcn.00475c80
mov eax, dword [ebp - 0x1c]
add eax, 0xdf4
je 0x4f5351
mov dword [edi + 0x418], eax
mov dword [edi + 0x61c], eax
mov dword [edi + 0x7bc], eax
mov dword [edi + 0x980], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4f5370
mov dword [edi + 0x41c], eax
mov dword [edi + 0x620], eax
mov dword [edi + 0x7c0], eax
mov dword [edi + 0x984], eax
mov eax, esi
call fcn.00476310
push edi
mov eax, esi
call fcn.004763f0
push 1
mov eax, esi
call fcn.00476080
call fcn.00477480
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebx]
cmp eax, 0xa0
jne 0x4f53cc
mov ecx, dword [ebp - 0x14]
mov al, 1
cmp byte [ecx + 0xd54], al
je 0x4f53ac
mov byte [ecx + 0xd54], al
cmp byte [edi + 0x421], al
je 0x4f53f9
push 0
mov ecx, edi
mov byte [edi + 0x421], al
call fcn.00478110
mov eax, edi
call fcn.00476590
jmp 0x4f53f9
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, 3
je 0x4f53db
cmp eax, 4
jne 0x4f53f9
cmp dword [ecx + 4], 0x12c
jne 0x4f53f9
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xd54], 1
je 0x4f53f9
mov ecx, eax
mov byte [ecx + 0xd54], 1
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edi, 0xa6c
mov dword [edi + 0x2dc], ebx
mov dword [edi + 0x2e0], edx
test eax, eax
je 0x4f541e
mov dword [edi + 0x2e4], eax
push edi
mov ebx, esi
call fcn.00472180
push esi
push edi
call fcn.004724d0
push 1
push edi
mov ecx, esi
call fcn.00471f30
push 0x757c
lea eax, [ebp - 0x30]
push eax
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4f546a
push eax
call fcn.005134a7
add esp, 4
mov ebx, dword [ebp - 0x14]
test esi, esi
je 0x4f54aa
push 0x1794
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4f5496
push 0x1794
push esi
mov edi, eax
lea esi, [ebx + 0x38]
call fcn.0042dc20
mov esi, dword [ebp - 0x18]
jmp 0x4f54ba
mov ecx, dword [ebx + 0x48]
mov edx, dword [ecx + 4]
lea edi, [edx + ebx + 0x48]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x4f54ba
mov eax, dword [ebx + 0x48]
mov ecx, dword [eax + 4]
lea eax, [ecx + ebx + 0x48]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4f54c6
mov ecx, 0x538640
lea eax, [ebx + 0x38]
call fcn.00402f90
push 0x8109
lea edx, [ebp - 0x30]
push edx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4f5501
push eax
call fcn.005134a7
add esp, 4
mov ebx, dword [ebp - 0x14]
test esi, esi
je 0x4f554a
push 0x3f2
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4f5530
push 0x3f2
push esi
mov edi, eax
lea esi, [ebx + 0x80]
call fcn.0042dc20
mov esi, dword [ebp - 0x18]
jmp 0x4f5560
mov eax, dword [ebx + 0x90]
mov ecx, dword [eax + 4]
lea edi, [ecx + ebx + 0x90]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
jmp 0x4f5560
mov edx, dword [ebx + 0x90]
mov eax, dword [edx + 4]
lea eax, [eax + ebx + 0x90]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4f556c
mov ecx, 0x538640
lea eax, [ebx + 0x80]
call fcn.00402f90
test esi, esi
je 0x4f5661
push 0x17c3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4f564a
push 0x17c3
push esi
mov edi, eax
lea esi, [ebx + 0x5c]
call fcn.0042dc20
cmp al, 1
jne 0x4f55b9
mov edx, ebx
cmp dword [edx + 0xdf8], 0
je 0x4f55b9
mov ecx, edx
call fcn.004f6420
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x14]
xor edi, edi
lea ecx, [ebx + 0xd58]
cmp eax, edi
je 0x4f55d4
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0x90], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0x8108
lea ecx, [ebp - 0x30]
push ecx
mov ecx, 0x55a400
call fcn.00467b90
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.004fce50
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x30]
cmp eax, edi
je 0x4f5621
push eax
call fcn.005134a7
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
test esi, esi
je 0x4f5690
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x4f5676
push 0x3f3
push esi
mov edi, eax
lea esi, [ebx + 0xa4]
call fcn.0042dc20
jmp 0x4f56a6
mov ecx, dword [ebx + 0x6c]
mov edx, dword [ecx + 4]
lea ebx, [edx + ebx + 0x6c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x4f55bc
mov eax, dword [ebx + 0x6c]
mov ecx, dword [eax + 4]
lea ebx, [ecx + ebx + 0x6c]
mov dword [ebx], 0x57
jmp 0x4f55bc
mov edx, dword [ebx + 0xb4]
mov eax, dword [edx + 4]
lea esi, [eax + ebx + 0xb4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x4f56a6
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ecx + 4]
lea eax, [edx + ebx + 0xb4]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
jne 0x4f56b2
mov ecx, 0x538640
lea eax, [ebx + 0xa4]
call fcn.00402f90
cmp byte [0x55a4ac], 0
mov byte [ebp - 0xd], 0
jne 0x4f56d3
call fcn.004bc570
test al, al
je 0x4f56d7
mov byte [ebp - 0xd], 1
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x4f56fd
cmp byte [ebp - 0xd], 0
je 0x4f56f2
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4f5713
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4f5713
mov eax, dword [ebx + 0xb4]
mov ecx, dword [eax + 4]
lea ebx, [ecx + ebx + 0xb4]
mov dword [ebx], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4f572a
push eax
call fcn.005134a7
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret