Function at 0x422380
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b538
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x4a8800]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x18], edi
push 0
mov dword [ebp - 4], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4223da
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.004222c0
mov dword [edi + 0x58], eax
mov eax, dword [0x4acd28]
mov dword [edi + 0x5c], edx
test eax, eax
je 0x422401
push 0
push dword [edi + 0x58]
push 0x402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x28]
mov dword [edi + 0x88], 0
push eax
lea ecx, [edi + 0x74]
mov dword [edi + 0x8c], 0
call fcn.004229a0
mov eax, dword [edi + 0x90]
test eax, eax
je 0x4224e1
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00459559
xor esi, esi
add esp, 4
mov ebx, eax
cmp dword [edi + 0x90], esi
jbe 0x42249b
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42245d
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [ebp - 0x20]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x14]
push ecx
push 0
push dword [eax]
push 0x422710
push 0
push 0
call fcn.0045dcfb
add esp, 0x14
mov dword [ebx + esi*4], eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x28]
push eax
call fcn.004229e0
inc esi
cmp esi, dword [edi + 0x90]
jb 0x422454
xor esi, esi
lea ecx, [ecx]
push 0
push 0
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4224c7
mov eax, dword [ebp - 0x7c]
cmp eax, 0x40e
jne 0x422509
inc esi
cmp esi, dword [edi + 0x90]
jne 0x4224a0
push 0xffffffffffffffff
push 1
push ebx
push dword [edi + 0x90]
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
call fcn.0045a610
add esp, 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x74]
call fcn.004229c0
mov ebx, dword [ebp - 0x20]
cmp ebx, dword [eax + 8]
setne al
test al, al
je 0x422655
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x422584
xor eax, eax
jmp 0x422586
cmp eax, 0x40d
jne 0x4224bf
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x44]
mov esi, dword [eax + 0xc]
call fcn.0045b11a
mov dword [ebp - 0x44], vtable.InetErr.0
mov dword [ebp - 0x38], esi
xor esi, esi
mov byte [ebp - 4], 1
cmp dword [edi + 0x90], esi
jbe 0x42255d
jmp 0x422540
push 0
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebx + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 0x90]
jb 0x422540
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
call fcn.0045b0f7
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x54]
push 0x49f71c
push eax
mov dword [ebp - 0x54], vtable.InetErr.0
call fcn.0045b204
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x4225a0
xor eax, eax
jmp 0x4225a2
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test esi, esi
jne 0x4225b8
xor eax, eax
jmp 0x4225ba
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
test esi, esi
jne 0x4225de
xor eax, eax
jmp 0x4225e0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, ebx
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax]
test esi, esi
jne 0x4225f6
xor eax, eax
jmp 0x4225f8
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
test esi, esi
jne 0x42261c
xor eax, eax
jmp 0x42261e
mov eax, dword [esi]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, ebx
push 0
mov eax, dword [eax + ecx*4]
mov dword [eax], 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4223c6
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004229e0
jmp 0x4224e1
lea eax, [ebp - 0x28]
add edi, 0x74
push eax
mov ecx, edi
call fcn.004229a0
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.004229c0
mov esi, dword [ebp - 0x20]
cmp esi, dword [eax + 8]
je 0x422687
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
inc esi
call fcn.004229c0
cmp esi, dword [eax + 8]
jne 0x422676
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