Function at 0x4757c0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511330
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
push ebx
push esi
push edi
mov eax, dword [0x569080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00409df0
mov ecx, ebx
call fcn.0045f510
push edi
lea ecx, [esi + 0x64]
call fcn.00409df0
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0045f870
test al, al
jne 0x47585b
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x475842
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x90]
call fcn.0048b350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
push 0
push 0
call fcn.0048b460
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], 0x533814
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x536eb8
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 0x533824
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xffffffff
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 4], 3
cmp byte [edi + 0x16c], 0
je 0x475949
call fcn.00422820
cmp byte [eax + 0x114], 0
jne 0x475949
call fcn.004226e0
test al, al
je 0x475949
call fcn.00422820
mov ecx, 0x47
lea edi, [ebp - 0x1ac]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x1a4], 0x47ba
jb 0x475946
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00476af0
jmp 0x475959
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.004763e0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], 0
test eax, eax
je 0x475984
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x47597b
mov eax, dword [ebp - 0x10]
jmp 0x475981
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], 0x533824
test eax, eax
je 0x4759db
push dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x38], 0xffffffff
je 0x4759d2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4759d2
cmp dword [ebp - 0x14], 0x103
jne 0x4759d2
push 0
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x90]
call fcn.00475a70
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x475a3e
xor ebx, ebx
cmp dword [ebp - 0x24], ebx
jle 0x475a2e
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea edi, [ecx + eax]
mov eax, dword [edi]
push 0
mov esi, dword [eax]
mov ecx, esi
call dword [0x525578]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0x14]
inc ebx
mov eax, dword [ebp - 0x28]
add ecx, 0x16c
mov dword [ebp - 0x14], ecx
cmp ebx, dword [ebp - 0x24]
jl 0x475a04
push eax
call fcn.004ddca1
add esp, 4
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4