Function at 0x409e5a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9c4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 0x4227e0
xor ebx, ebx
jmp 0x409f7a
cmp byte [0x4656db], 0
je 0x409e93
lea eax, [edi + 0x23]
push eax
lea edx, [ebp - 0x42c]
push edx
call sub.cw3230mt.DLL__strcpy
add esp, 8
jmp 0x409ea3
lea ecx, [ebp - 0x42c]
push ecx
push ebx
call fcn.0041ebf6
add esp, 8
lea eax, [ebp - 0x42c]
push eax
mov dl, byte [0x4656db]
push edx
push ebx
call fcn.004045b1
add esp, 0xc
dec eax
je 0x409ec8
dec eax
je 0x409f02
dec eax
je 0x409f3c
jmp 0x409f79
lea ecx, [ebp - 0x42c]
push ecx
lea eax, [edi + 0x2e]
push eax
lea edx, [ebp - 0x52c]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x46b778
lea ecx, [ebp - 0x52c]
push ecx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
lea edx, [ebp - 0x42c]
push edx
lea ecx, [edi + 0x69]
push ecx
lea eax, [ebp - 0x52c]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x46b778
lea edx, [ebp - 0x52c]
push edx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
lea edx, [ebp - 0x42c]
push edx
lea ecx, [edi + 0x8d]
push ecx
lea eax, [ebp - 0x52c]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x46b778
lea edx, [ebp - 0x52c]
push edx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
inc ebx
mov edx, dword [0x422430]
xor ecx, ecx
mov cl, byte [edx + 0x29]
cmp ebx, ecx
jl 0x409e75
cmp byte [0x4656db], 0
jne 0x409fea
mov eax, dword [0x46b5c4]
cmp word [eax], 2
je 0x409fae
mov edx, dword [0x46b5c4]
cmp word [edx], 0x8002
jne 0x409fea
lea ecx, [edi + 0xc2]
push ecx
push 0
mov eax, dword [0x422430]
xor edx, edx
mov dl, byte [eax + 0x29]
push edx
call fcn.004045b1
add esp, 0xc
test eax, eax
je 0x409fea
push 0x10
push 0x46b778
lea ecx, [edi + 0xcf]
push ecx
push 0
call fcn.00403d2c
xor eax, eax
jmp 0x40a51c
push 0x46b89c
lea edx, [ebp - 0x40c]
push edx
call sub.cw3230mt.DLL__strcpy
add esp, 8
lea ecx, [edi + 0xfb]
push ecx
lea eax, [ebp - 0x40c]
push eax
call sub.cw3230mt.DLL__strcat
add esp, 8
mov edx, dword [0x422430]
xor ecx, ecx
mov cl, byte [edx + 0x1403]
push ecx
mov eax, dword [0x422430]
xor edx, edx
mov dl, byte [eax + 0x1405]
push edx
call fcn.0041edd7
add esp, 8
push eax
lea ecx, [ebp - 0x40c]
push ecx
call sub.cw3230mt.DLL__strcat
add esp, 8
lea eax, [ebp - 0x40c]
push eax
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x422718], eax
cmp dword [0x422718], 0
jne 0x40a0a0
lea edx, [ebp - 0x40c]
push edx
lea ecx, [edi + 0x100]
push ecx
lea eax, [ebp - 0x5ac]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x46b778
lea edx, [ebp - 0x5ac]
push edx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
lea edx, [edi + 0x114]
push edx
push dword [0x422718]
call sub.KERNEL32.dll_GetProcAddress
mov ebx, eax
test ebx, ebx
je 0x40a394
mov dword [0x46b5c8], 0x46b518
mov eax, dword [0x422430]
mov dword [0x46b5cc], eax
mov edx, dword [0x465670]
mov dword [0x46b5d0], edx
mov ecx, dword [0x4656b4]
mov dword [0x46b5d4], ecx
mov eax, dword [0x42242c]
mov dword [0x46b5dc], eax
mov dword [0x46b5e0], 0x46b778
mov edx, dword [0x4656e0]
mov dword [0x46b5e4], edx
mov ecx, dword [0x4656e4]
mov dword [0x46b5e8], ecx
mov dword [0x46b5ec], 0x46b414
mov dword [0x46b5f0], 0x409e49
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x46b728], eax
mov eax, dword [0x46b728]
mov dword [0x46b630], eax
push 0
push 0
push 0
push 0
call sub.KERNEL32.dll_CreateEventA
mov dword [0x46b72c], eax
mov edx, dword [0x46b72c]
mov dword [0x46b634], edx
mov dword [0x46b658], 0x40d4e2
mov dword [0x46b660], 0x40113e
mov dword [0x46b664], 0x401346
mov dword [0x46b65c], 0x40d5ad
mov dword [0x46b668], 0x40d352
mov dword [0x46b66c], 0x40d5b2
mov dword [0x46b670], 0x40d5e2
mov dword [0x46b674], 0x40d612
mov dword [0x46b678], 0x40d628
mov dword [0x46b67c], 0x40d67a
mov dword [0x46b684], 0x40db23
mov dword [0x46b688], 0x40dc5b
mov dword [0x46b68c], 0x40dd9a
mov dword [0x46b690], 0x40dee0
mov dword [0x46b694], 0x40df69
mov dword [0x46b698], 0x40dfa9
mov dword [0x46b69c], 0x40e0a7
mov dword [0x46b6a0], 0x40e0be
mov dword [0x46b6a4], 0x40e37e
mov dword [0x46b6a8], 0x40e534
mov dword [0x46b6ac], 0x40ebac
mov dword [0x46b6b0], 0x40edb1
mov dword [0x46b6b4], 0x40f0ef
mov dword [0x46b6b8], 0x40f2bf
mov dword [0x46b6bc], 0x40f4e0
mov dword [0x46b6c0], 0x40f6ae
mov dword [0x46b6c4], 0x40f6c7
mov dword [0x46b6c8], 0x40f712
mov dword [0x46b6cc], 0x40149e
mov dword [0x46b6d0], 0x401108
mov dword [0x46b6d4], 0x401422
mov dword [0x46b6d8], 0x401447
mov dword [0x46b6e8], 0x40d2f0
mov dword [0x46b6dc], 0x40146e
mov dword [0x46b6e0], 0x401486
mov dword [0x46b6e4], 0x4106f1
mov dword [0x46b718], 0x410148
mov dword [0x46b71c], 0x46b4f0
mov ecx, dword [0x4223e8]
mov dword [0x46b720], ecx
push 0x46b5c8
push 0xbc614e
push 0
call ebx
test eax, eax
je 0x40a3e9
mov eax, dword [0x46b61c]
mov byte [eax], 0
lea edx, [ebp - 4]
push edx
push 0
push 0
push dword [0x46b620]
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x4656bc], eax
cmp dword [0x4656bc], 0
jne 0x40a34d
push 0x10
push 0x46b778
lea ecx, [edi + 0x122]
push ecx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
lea edx, [ebp - 8]
push edx
push 2
push 0
push dword [0x46b624]
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x46b730], eax
cmp dword [0x46b730], 0
jne 0x40a3e9
push 0x10
push 0x46b778
lea ecx, [edi + 0x144]
push ecx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
mov edx, dword [0x422430]
xor ecx, ecx
mov cl, byte [edx + 0x1403]
push ecx
mov eax, dword [0x422430]
xor edx, edx
mov dl, byte [eax + 0x1405]
push edx
call fcn.0041edd7
add esp, 8
push eax
lea ecx, [edi + 0x166]
push ecx
lea eax, [ebp - 0x62c]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
push 0x10
push 0x46b778
lea edx, [ebp - 0x62c]
push edx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor ecx, ecx
mov dword [0x46b724], ecx
mov eax, dword [0x422430]
cmp byte [eax + 0x2b], 0
je 0x40a443
lea edx, [ebp - 0xc]
push edx
push 0
push 0
push dword [0x46b628]
push 0
push 0
call sub.KERNEL32.dll_CreateThread
mov dword [0x46b724], eax
cmp dword [0x46b724], 0
jne 0x40a44b
push 0x10
push 0x46b778
lea ecx, [edi + 0x17f]
push ecx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
xor edx, edx
mov dword [0x46b64c], edx
push 0x46b89c
lea ecx, [ebp - 0x40c]
push ecx
call sub.cw3230mt.DLL__strcpy
add esp, 8
lea eax, [edi + 0x1a7]
push eax
lea edx, [ebp - 0x40c]
push edx
call sub.cw3230mt.DLL__strcat
add esp, 8
lea ecx, [ebp - 0x40c]
push ecx
call sub.KERNEL32.dll_LoadLibraryA
mov dword [0x4223e4], eax
cmp dword [0x4223e4], 0
je 0x40a4fb
lea eax, [edi + 0x1b4]
push eax
push dword [0x4223e4]
call sub.KERNEL32.dll_GetProcAddress
lea edx, [ebp - 0x63c]
push edx
push 0xbc614e
push 0
call eax
test eax, eax
je 0x40a4da
mov ecx, dword [ebp - 0x63c]
mov dword [0x46b4e4], ecx
mov eax, dword [ebp - 0x638]
mov dword [0x46b4e8], eax
mov edx, dword [ebp - 0x634]
mov dword [0x46b4ec], edx
jmp 0x40a51a
push 0x10
lea ecx, [edi + 0x1e1]
push ecx
lea eax, [edi + 0x1c2]
push eax
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
push 0x10
lea edx, [edi + 0x1fd]
push edx
lea ecx, [edi + 0x1e4]
push ecx
push 0
push esi
call sub.OWL52t.dll__TApplication_MessageBox_qp6HWND__pxct2ui
add esp, 0x14
xor eax, eax
jmp 0x40a51c
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret