Function at 0x438170
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45ba49
push eax
mov dword fs:[0], esp
sub esp, 0x140
push ebx
xor ebx, ebx
push ebx
push 0x100
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
call fcn.00438070
lea eax, [esp + 0x40]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4381e6
push 0x2710
push 0x30
push 0x474e90
push 0x479920
push ebx
call fcn.0042f2f0
add esp, 0x14
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
add esp, 0x14c
ret
lea ecx, [esp + 0x40]
mov al, 0x45
push ecx
mov byte [esp + 0x18], 0x44
mov byte [esp + 0x19], 0x57
mov byte [esp + 0x1a], 0x52
mov byte [esp + 0x1b], 0x43
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x2e
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], 0x58
mov byte [esp + 0x20], al
mov byte [esp + 0x21], bl
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x40]
push eax
push edx
call dword [sym.imp.USER32.dll_CharUpperBuffA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.00452b10
add esp, 8
test eax, eax
jne 0x438276
push 0x2710
push 0x30
push 0x474e90
push 0x4798e8
push ebx
call fcn.0042f2f0
add esp, 0x14
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
add esp, 0x14c
ret
cmp dword [esp + 0x154], ebx
je 0x438284
call fcn.00437cc0
call fcn.00445710
test eax, eax
je 0x43829e
cmp dword [0x481a98], ebx
jne 0x43829e
push ebx
call fcn.0042cc10
add esp, 4
mov edx, dword [0x481b80]
push edx
call fcn.0042d9a0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.00448af0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14c], ebx
cmp eax, ebx
jne 0x43830b
push 0x2710
push 0x10
push 0x474e90
push 0x4798c0
push ebx
call fcn.0042f2f0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x14c], 0xffffffff
call fcn.00448b10
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x140]
mov dword fs:[0], ecx
add esp, 0x14c
ret
push 1
call fcn.0042dab0
push 0x2d0c
call fcn.00451b7b
add esp, 8
mov dword [esp + 8], eax
cmp eax, ebx
mov byte [esp + 0x14c], 1
je 0x438338
mov ecx, eax
call fcn.0041d720
jmp 0x43833a
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push ebx
mov byte [esp + 0x158], bl
mov dword [0x4859f0], eax
call esi
push 0xfa
call esi
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call edi
mov ecx, dword [0x4859f0]
mov dword [ecx + 0x111c], eax
mov eax, dword [0x481a98]
cmp eax, ebx
jne 0x4383ca
push ebx
call esi
mov ecx, dword [0x4859f0]
push 1
call fcn.00421ad0
test eax, eax
jne 0x4383c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4798a0
call fcn.00446e00
add esp, 8
push ebx
call esi
push 0x3e8
call esi
push ebx
call esi
push 0x3e8
call esi
mov ecx, dword [0x4859f0]
push 1
call fcn.00421ad0
test eax, eax
je 0x4383a0
push ebx
call esi
jmp 0x4383dc
call edi
mov ecx, dword [0x4859f0]
mov dword [0x486604], eax
call fcn.0041e860
mov eax, dword [0x4859f0]
lea edx, [esp + 0x28]
push ebp
push edx
push 4
push eax
push 0x423c60
push ebx
push ebx
mov dword [esp + 0x44], ebx
call fcn.0045233c
mov edi, eax
add esp, 0x18
cmp edi, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x438435
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push ebx
lea ecx, [esp + 0x18]
push ebx
push ecx
call ebp
push eax
push edi
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
call edi
cmp eax, ebx
je 0x438479
cmp eax, 0xffffffff
je 0x43846b
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea edx, [esp + 0x38]
push ebx
push edx
call edi
cmp eax, ebx
jne 0x438450
push ebx
call fcn.0042dab0
mov eax, dword [0x4859f0]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
add esp, 4
mov eax, dword [eax + 0x34]
cmp eax, ebx
je 0x438497
push eax
call edi
mov ecx, dword [0x4859f0]
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x4384a7
push eax
call edi
push ebx
call esi
cmp dword [esp + 0x10], ebx
je 0x438578
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [esp + 0x18], 0x103
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call ebp
test eax, eax
je 0x438530
cmp dword [esp + 0x18], 0x103
jne 0x438530
mov ecx, dword [0x481914]
push 1
push ebx
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
call edi
test eax, eax
je 0x43850e
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
call esi
push 0x32
call esi
push ebx
call esi
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x78
mov dword [esp + 0x14], eax
ja 0x438530
cmp dword [esp + 0x18], 0x103
je 0x4384c8
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x438578
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 0x103
push edx
push eax
call ebp
test eax, eax
je 0x438562
cmp dword [esp + 0x14], 0x103
jne 0x438562
mov eax, dword [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
push ebx
call esi
mov eax, dword [0x485b04]
pop ebp
cmp eax, ebx
je 0x438592
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x485b04], ebx
mov esi, dword [0x4859f0]
cmp esi, ebx
je 0x4385b2
mov ecx, esi
call fcn.0041de10
push esi
call fcn.00451f5e
add esp, 4
mov dword [0x4859f0], ebx
mov eax, dword [0x485b10]
mov dword [0x481914], ebx
cmp eax, ebx
je 0x4385d4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x485b10], ebx
mov dword [0x485b14], ebx
mov eax, dword [0x486610]
cmp eax, ebx
je 0x4385ea
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov dword [0x486610], ebx
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x18]
mov dword [esp + 0x154], 0xffffffff
call fcn.00448b10
mov ecx, dword [esp + 0x14c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14c
ret