Function at 0x500db0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540bc8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x575494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x8102
lea eax, [ebp - 0x28]
push eax
mov ecx, 0x5776a0
call fcn.00471380
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
lea esi, [ebx + 0x14]
test edi, edi
je 0x500e32
push 0x3ec
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x500e1e
push 0x3ec
push edi
mov edi, eax
call fcn.00435080
jmp 0x500e42
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 0x500e42
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 4]
lea esi, [ecx + esi + 0x10]
mov dword [esi], 0x57
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x500e4e
mov ecx, 0x54ee24
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x500e77
test ecx, ecx
je 0x500e77
push ecx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
test eax, eax
jne 0x500e85
mov edx, dword [ebx + 0x24]
mov edi, dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + ebx + 0x24], eax
jmp 0x500e85
mov eax, dword [ebx + 0x24]
mov eax, dword [eax + 4]
mov dword [eax + ebx + 0x24], 0x57
mov eax, dword [ebx + 0x13f0]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x50120c
lea ecx, [eax + 0x130]
lea edx, [eax + 0x1b4]
mov dword [ebx + 0x13f4], ecx
lea ecx, [eax + 0x1c]
mov dword [ebp - 0x1c], edx
lea edx, [eax + 0xe3c]
sub ebx, 0xffffff80
mov dword [ebp - 0x10], ecx
lea edi, [eax + 0xe1c]
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x500ecf
mov ecx, dword [ecx]
mov dword [ebx + 0x424], ecx
test eax, eax
je 0x500ee5
mov dword [ebx + 0x410], eax
mov dword [ebx + 0x7dc], eax
mov dword [ebx + 0xb18], eax
mov esi, dword [ebp + 0xc]
push 0x4b0
push esi
mov ecx, ebx
call fcn.0047de50
push 0
push esi
call fcn.0047df70
push esi
call fcn.0047e090
push esi
push ebx
call fcn.0047e210
push esi
push ebx
call fcn.0047e7a0
push 1
push esi
push ebx
call fcn.0047e530
test edi, edi
je 0x500f30
mov dword [ebx + 0x418], edi
mov dword [ebx + 0x7e0], edi
mov dword [ebx + 0xb1c], edi
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x500f49
mov dword [ebx + 0x41c], eax
mov dword [ebx + 0x7e4], eax
mov dword [ebx + 0xb20], eax
mov eax, esi
call fcn.0047ebd0
push ebx
mov eax, esi
call fcn.0047ecb0
push 1
mov eax, esi
call fcn.0047e930
mov edi, ebx
call fcn.0047fd80
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
cmp ecx, 0xa0
je 0x500f7d
cmp ecx, 0x80000
jne 0x500f92
mov edi, dword [ebp + 8]
cmp byte [edi + 0xf14], 1
je 0x500fc6
mov byte [edi + 0xf14], 1
jmp 0x500fc6
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
cmp eax, 3
je 0x500fa1
cmp eax, 4
jne 0x500fc3
cmp dword [edx + 4], 0x12c
jne 0x500fc3
mov eax, dword [ebp + 8]
cmp byte [eax + 0xf14], 1
je 0x500fc3
mov edx, eax
mov byte [edx + 0xf14], 1
mov edi, eax
jmp 0x500fc6
mov edi, dword [ebp + 8]
cmp dword [ebx + 0x424], ecx
je 0x500fdc
push 0
push ebx
mov dword [ebx + 0x424], ecx
call fcn.00480a50
mov eax, ebx
call fcn.0047ee50
mov eax, dword [ebp - 0x10]
lea ebx, [edi + 0xbd4]
mov dword [ebx + 0x334], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x500fff
mov dword [ebx + 0x338], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x50100c
mov dword [ebx + 0x33c], eax
push esi
push ebx
call fcn.0047a700
push esi
push ebx
call fcn.0047ad00
push 1
push ebx
mov ecx, esi
call fcn.0047a4b0
mov eax, dword [ebp - 0x1c]
add edi, 0xfac
mov esi, edi
call fcn.00477270
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x13f0]
mov eax, dword [edx + 0x1c]
mov esi, dword [ebp + 0xc]
push 0
push 0
push eax
push edi
mov ebx, esi
call fcn.004772c0
push 0
push 0
mov edx, esi
mov ecx, edi
call fcn.00477640
push 0x8109
lea ecx, [ebp - 0x34]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x501090
push eax
call fcn.0051eadb
add esp, 4
mov edi, dword [ebp + 8]
lea ebx, [edi + 0x5c]
test esi, esi
je 0x5010d8
push 0x3f8
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x5010c1
push 0x3f8
push esi
mov edi, eax
mov esi, ebx
call fcn.00435080
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
jmp 0x5010e8
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 4]
lea edi, [eax + ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
mov edi, dword [ebp + 8]
jmp 0x5010e8
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 4]
lea eax, [edx + ebx + 0x10]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x5010f4
mov ecx, 0x54ee24
mov eax, ebx
call fcn.00405d30
mov eax, dword [edi + 0x13f4]
xor ebx, ebx
lea ecx, [edi + 0xf18]
cmp eax, ebx
je 0x501113
mov dword [ecx + 0x80], eax
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0x90], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0x8108
lea ecx, [ebp - 0x34]
push ecx
mov ecx, 0x5776a0
call fcn.00471380
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00508010
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
cmp eax, ebx
je 0x501160
push eax
call fcn.0051eadb
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
lea ebx, [edi + 0x38]
test esi, esi
je 0x50119c
push 0x3f3
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x501188
push 0x3f3
push esi
mov edi, eax
mov esi, ebx
call fcn.00435080
jmp 0x5011ac
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 4]
lea esi, [eax + ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
jmp 0x5011ac
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 4]
lea eax, [edx + ebx + 0x10]
mov dword [eax], 0x57
mov ecx, dword [ebp - 0x28]
test ecx, ecx
jne 0x5011b8
mov ecx, 0x54ee24
mov eax, ebx
call fcn.00405d30
cmp byte [0x57774c], 0
mov byte [ebp + 0xb], 0
jne 0x5011d5
call fcn.004c7c70
test al, al
je 0x5011d9
mov byte [ebp + 0xb], 1
mov eax, dword [ebx + 8]
test eax, eax
je 0x5011fc
cmp byte [ebp + 0xb], 0
je 0x5011f1
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x50120c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x50120c
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 4]
lea ebx, [ecx + ebx + 0x10]
mov dword [ebx], 6
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x501223
push eax
call fcn.0051eadb
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 8