Function at 0x402520
Capabilities:
Resume thread

Disassembly:
mov eax, 0x101c
call fcn.00459b10
mov eax, dword [0x488e40]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
push ebx
push ebp
mov ebp, dword [esp + 0x102c]
push esi
push edi
mov esi, edx
push 0x20
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
call fcn.00454540
add esp, 8
test eax, eax
mov edi, esi
je 0x4025d9
lea eax, [esp + 0x1d]
mov ecx, eax
mov byte [esp + 0x1c], 0x22
mov edx, 0x1002
sub edi, ecx
jmp 0x402580
mov cl, byte [edi + eax]
xor ebx, ebx
cmp cl, bl
je 0x402595
mov byte [eax], cl
sub edx, 1
add eax, 1
cmp edx, ebx
jg 0x402580
mov byte [eax], bl
mov edi, 0x474d00
lea ecx, [esp + 0x1c]
mov eax, 0x1003
cmp byte [ecx], bl
je 0x4025b7
sub eax, 1
add ecx, 1
cmp eax, ebx
jg 0x4025a5
mov byte [ecx], bl
jmp 0x4025fe
cmp eax, ebx
jle 0x4025d5
jmp 0x4025c0
mov dl, byte [edi]
cmp dl, bl
je 0x4025d5
mov byte [ecx], dl
sub eax, 1
add ecx, 1
add edi, 1
cmp eax, ebx
jg 0x4025c0
mov byte [ecx], bl
jmp 0x4025fe
lea eax, [esp + 0x1c]
mov ecx, eax
mov edx, 0x1003
sub edi, ecx
mov cl, byte [edi + eax]
test cl, cl
je 0x4025f9
mov byte [eax], cl
sub edx, 1
add eax, 1
test edx, edx
jg 0x4025e6
mov byte [eax], 0
xor ebx, ebx
cmp ebp, ebx
je 0x402681
cmp byte [ebp], bl
je 0x402681
mov edi, 0x474d04
lea eax, [esp + 0x1c]
mov ecx, 0x1003
cmp byte [eax], bl
je 0x402625
sub ecx, 1
add eax, 1
cmp ecx, ebx
jg 0x402615
jmp 0x402645
cmp ecx, ebx
jle 0x402645
lea esp, [esp]
mov dl, byte [edi]
cmp dl, bl
je 0x402645
mov byte [eax], dl
sub ecx, 1
add eax, 1
add edi, 1
cmp ecx, ebx
jg 0x402630
mov byte [eax], bl
mov esi, ebp
lea ecx, [esp + 0x1c]
mov eax, 0x1003
cmp byte [ecx], bl
je 0x402662
sub eax, 1
add ecx, 1
cmp eax, ebx
jg 0x402652
jmp 0x40267b
cmp eax, ebx
jle 0x40267b
mov dl, byte [esi]
cmp dl, bl
je 0x40267b
mov byte [ecx], dl
sub eax, 1
add ecx, 1
add esi, 1
cmp eax, ebx
jg 0x402666
mov esi, dword [esp + 0x18]
mov byte [ecx], bl
push 0x40
call fcn.0042f8c1
mov ebp, dword [sym.imp.KERNEL32.dll_RaiseException]
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x4026db
mov dword [edi + 4], 1
mov dword [edi], vtable.CLoadedModule.0
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], 0x10
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov byte [edi + 0x24], bl
mov dword [edi + 0x28], ebx
mov byte [edi + 0x2c], bl
mov dword [edi + 0x30], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov eax, esi
mov dword [edi + 0x34], ebx
call fcn.00401710
jmp 0x4026e8
push ebx
push ebx
push 1
push 0xc0000017
xor edi, edi
call ebp
push 0x38c
call fcn.0042f8c1
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x402716
mov edx, dword [esp + 0x103c]
mov eax, edi
mov edi, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
mov ecx, edi
call fcn.00402c20
jmp 0x40271c
mov edi, dword [esp + 0x14]
xor eax, eax
cmp eax, ebx
mov dword [edi + 0x24], eax
jne 0x40272e
push ebx
push ebx
push 1
push 0xc0000017
call ebp
mov eax, dword [edi + 0x24]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x6c], eax
mov eax, dword [esp + 0x1038]
mov ecx, dword [esp + 0x103c]
lea edx, [esp + 0x1c]
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov dword [edi + 8], ecx
cmp byte [0x48d648], bl
je 0x402764
mov eax, edi
call fcn.00402850
jmp 0x4027b5
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, ebx
mov dword [edi + 0x14], eax
je 0x4027e2
push ebx
push 4
push ebx
push ebx
push edi
push 0x4021e0
call fcn.0043e6b0
cmp eax, ebx
mov dword [edi + 0x18], eax
je 0x4027e2
mov dword [eax + 0x28], ebx
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [edi + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [edi + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x14], ebx
cmp dword [edi + 0x1c], ebx
jne 0x4027ce
mov eax, dword [edi + 0x20]
push ebx
mov ebx, dword [edi + 0x24]
push eax
mov ecx, str.Failure_starting_the_process.
call fcn.00404b60
xor ebx, ebx
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi + 0x1c], ebx
je 0x4027e2
mov eax, dword [edi + 0x24]
jmp 0x4027e4
xor eax, eax
mov ecx, dword [esp + 0x1028]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00454016
add esp, 0x101c
ret 0x10