Function at 0x4143cc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4143d4
push ecx
push ebx
push esi
push edi
mov esi, dword [0x41d590]
mov edi, 0x420180
mov ebx, dword [0x41d66c]
xor eax, eax
push ebp
push 0x414ba9
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.KERNEL32.DLL_SetErrorMode
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, dword [0x41d634]
mov dword [edx], eax
mov eax, dword [0x41d684]
mov edx, 0x414bc0
call fcn.00403e64
mov eax, dword [0x41d57c]
mov edx, 0x414bd8
call fcn.00403e64
mov edx, dword [0x41d5a0]
mov edx, dword [edx]
mov eax, dword [0x41d620]
mov ecx, 0x414bf4
call fcn.00404004
mov eax, dword [0x41d5d8]
mov edx, 0x414c0c
call fcn.00403e64
mov edx, dword [0x41d5d4]
mov edx, dword [edx]
mov eax, dword [0x41d580]
mov ecx, 0x414c18
call fcn.00404004
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x41d620]
mov eax, dword [eax]
call fcn.004041b8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edx, dword [0x41d69c]
mov dword [edx], eax
mov eax, dword [0x41d56c]
push eax
lea eax, [ebp - 2]
push eax
mov eax, dword [0x41d5c8]
push eax
mov eax, dword [0x41d69c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetFileTime
mov eax, dword [0x41d69c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esi + 0x38]
mov edx, 0x414c28
call fcn.00404104
jne 0x4144ed
call fcn.00414d68
mov eax, dword [0x41d5d0]
cmp byte [eax], 0
je 0x4144e8
call fcn.004085d8
call fcn.00408408
mov eax, dword [esi + 0x44]
mov edx, 0x414c28
call fcn.00404104
jne 0x414512
mov ecx, dword [esi]
mov edx, dword [0x41d5a0]
mov edx, dword [edx]
mov eax, dword [0x41d690]
call fcn.00404004
jmp 0x414526
mov ecx, dword [esi]
mov edx, dword [0x41d570]
mov edx, dword [edx]
mov eax, dword [0x41d690]
call fcn.00404004
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402808
mov eax, dword [ebp - 0x10]
mov edx, dword [0x41d690]
mov edx, dword [edx]
call fcn.00407954
mov eax, dword [esi + 0x20]
mov edx, 0x414c28
call fcn.00404104
jne 0x41456a
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402808
mov eax, dword [ebp - 0x14]
mov edx, dword [0x41d6c0]
mov edx, dword [edx + 8]
call fcn.00407954
mov eax, dword [esi + 0x24]
mov edx, 0x414c28
call fcn.00404104
je 0x414588
mov eax, dword [esi + 0x28]
mov edx, 0x414c28
call fcn.00404104
jne 0x4145a3
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402808
mov eax, dword [ebp - 0x18]
mov edx, dword [0x41d6c0]
mov edx, dword [edx + 0x14]
call fcn.00407954
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x41d6c0]
mov eax, dword [eax + 8]
call fcn.004041b8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edx, dword [0x41d6b4]
mov dword [edx], eax
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
mov eax, dword [0x41d6c0]
mov eax, dword [eax + 0x14]
call fcn.004041b8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov edx, dword [0x41d6c8]
mov dword [edx], eax
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00402808
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00407100
mov edx, dword [ebp - 0x1c]
mov eax, 0x4201a8
call fcn.00403e64
lea edx, [ebp - 0x24]
mov eax, dword [0x41d690]
mov eax, dword [eax]
call fcn.00407100
mov edx, dword [ebp - 0x24]
mov eax, dword [0x4201a8]
call fcn.00404104
je 0x4147e0
lea edx, [ebp - 0x28]
mov eax, dword [0x41d6c0]
mov eax, dword [eax + 8]
call fcn.00407100
mov edx, dword [ebp - 0x28]
mov eax, dword [0x4201a8]
call fcn.00404104
je 0x4147c8
lea edx, [ebp - 0x2c]
mov eax, dword [0x41d6c0]
mov eax, dword [eax + 0x14]
call fcn.00407100
mov edx, dword [ebp - 0x2c]
mov eax, dword [0x4201a8]
call fcn.00404104
je 0x4147c8
cmp dword [esi + 0x54], 0
je 0x4146cd
mov eax, dword [0x41d5d0]
cmp byte [eax], 0
je 0x4146cd
mov dword [ebp - 8], 1
push 4
lea eax, [ebp - 8]
push eax
push 4
mov edx, dword [0x41d624]
mov edx, dword [edx]
lea eax, [ebp - 0x30]
mov ecx, 0x414c34
call fcn.00404004
mov edx, dword [ebp - 0x30]
mov ecx, 0x414c60
mov eax, 2
call fcn.00407f1c
cmp dword [esi + 0x50], 0
je 0x4147a5
mov eax, dword [0x41d630]
push eax
mov edx, dword [esi + 0x50]
mov eax, 0x414c74
call fcn.004042a0
mov ecx, eax
dec ecx
mov eax, dword [esi + 0x50]
mov edx, 1
call fcn.00404218
lea eax, [esi + 0x50]
push eax
mov edx, dword [esi + 0x50]
mov eax, 0x414c74
call fcn.004042a0
mov edx, eax
inc edx
mov eax, dword [esi + 0x50]
mov ecx, 0x3e8
call fcn.00404218
mov eax, dword [0x41d674]
push eax
mov edx, dword [esi + 0x50]
mov eax, 0x414c74
call fcn.004042a0
mov ecx, eax
dec ecx
mov eax, dword [esi + 0x50]
mov edx, 1
call fcn.00404218
lea eax, [esi + 0x50]
push eax
mov edx, dword [esi + 0x50]
mov eax, 0x414c74
call fcn.004042a0
mov edx, eax
inc edx
mov eax, dword [esi + 0x50]
mov ecx, 0x3e8
call fcn.00404218
mov eax, dword [0x41d61c]
push eax
mov eax, dword [esi + 0x50]
mov ecx, 2
mov edx, 1
call fcn.00404218
mov eax, dword [0x41d61c]
mov eax, dword [eax]
call fcn.00406164
push eax
mov eax, dword [0x41d630]
mov eax, dword [eax]
call fcn.004041b8
push eax
mov eax, dword [0x41d674]
mov eax, dword [eax]
call fcn.004041b8
push eax
push 0
call sub.user32.dll_MessageBoxA
mov eax, dword [esi + 0x4c]
mov edx, 0x414c28
call fcn.00404104
jne 0x4147c8
mov eax, dword [0x41d6a8]
mov edx, 0x414c80
call fcn.00403e64
call fcn.004075ec
mov eax, dword [0x41d690]
mov eax, dword [eax]
xor ecx, ecx
mov edx, 1
call fcn.00405dd0
call fcn.00403ca4
mov dword [ebx], pe_nt_image_headers32
push 0x414c84
mov eax, dword [0x41d634]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov dword [ebx + 0x14], eax
mov dword [ebx + 4], 0x414e30
mov eax, dword [0x41d634]
mov eax, dword [eax]
mov dword [ebx + 0x10], eax
mov eax, 0x414c88
mov dword [ebx + 0x24], eax
push ebx
call sub.user32.dll_RegisterClassA
push 0xa
push 0xa
push 0xc8
push 0x64
push 0
push 0
mov eax, dword [0x41d634]
mov eax, dword [eax]
push eax
push 0
mov edx, 0x414c90
mov eax, dword [ebx + 0x24]
mov ecx, 0x80000
call fcn.00405630
mov edx, dword [0x41d648]
mov dword [edx], eax
cmp dword [esi + 0x34], 0
je 0x4148b5
mov eax, dword [0x41d5fc]
mov eax, dword [eax]
call fcn.00404744
test eax, eax
jne 0x414868
call fcn.00414d68
mov eax, dword [esi + 0x34]
call fcn.00406164
imul eax, eax, 0x3e8
mov edx, dword [0x41d608]
mov dword [edx], eax
push 0
push 0
mov eax, dword [0x41d6cc]
push eax
mov ecx, 0x4085c4
xor edx, edx
xor eax, eax
call fcn.00403dcc
mov edx, dword [0x41d640]
mov dword [edx], eax
mov eax, dword [0x41d640]
cmp dword [eax], 0
jbe 0x4148b5
mov eax, dword [0x41d6cc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov eax, dword [0x41d570]
push dword [eax]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [esi + 0x3c]
mov ecx, 4
mov edx, 3
call fcn.00404218
push dword [ebp - 0x34]
push 0x414c9c
mov eax, dword [0x41d5f0]
mov edx, 3
call fcn.00404078
push 0
push 0
mov eax, dword [0x41d5bc]
push eax
mov ecx, 0x415b04
xor edx, edx
xor eax, eax
call fcn.00403dcc
mov edx, dword [0x41d544]
mov dword [edx], eax
mov eax, dword [0x41d544]
cmp dword [eax], 0
jbe 0x414920
mov eax, dword [0x41d5bc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ResumeThread
push 0
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x41d574]
mov dword [edx], eax
push 1
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x41d568]
mov dword [edx], eax
mov eax, dword [esi + 0x2c]
mov edx, 0x414c28
call fcn.00404104
jne 0x4149bc
push 0
push 0
mov eax, dword [0x41d604]
push eax
mov ecx, 0x41505c
xor edx, edx
xor eax, eax
call fcn.00403dcc
mov edx, dword [0x41d58c]
mov dword [edx], eax
mov eax, dword [0x41d58c]
cmp dword [eax], 0
jbe 0x414984
mov eax, dword [0x41d604]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ResumeThread
call fcn.00407a60
push 0x414cac
mov eax, dword [0x41d5dc]
push dword [eax]
push 0x414cc8
mov eax, dword [0x41d6b8]
push dword [eax]
push 0x414cd4
mov eax, dword [0x41d5d8]
push dword [eax]
mov eax, dword [0x41d5e8]
mov edx, 6
call fcn.00404078
mov eax, dword [esi + 0x20]
mov edx, 0x414c28
call fcn.00404104
je 0x4149e9
mov eax, dword [esi + 0x24]
mov edx, 0x414c28
call fcn.00404104
je 0x4149e9
mov eax, dword [esi + 0x28]
mov edx, 0x414c28
call fcn.00404104
jne 0x414a20
push 0
push 0
mov eax, dword [0x41d548]
push eax
mov ecx, 0x414f24
xor edx, edx
xor eax, eax
call fcn.00403dcc
mov edx, dword [0x41d65c]
mov dword [edx], eax
mov eax, dword [0x41d65c]
cmp dword [eax], 0
jbe 0x414a20
mov eax, dword [0x41d548]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp dword [esi + 0x10], 0
je 0x414a96
xor eax, eax
mov dword [ebp - 8], eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x41d63c]
mov ecx, 1
mov edx, dword [0x405ce8]
call fcn.004048f8
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, 0x414c74
call fcn.004042a0
mov ebx, eax
mov eax, dword [0x41d63c]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
lea eax, [eax + edx*4 - 4]
push eax
mov ecx, ebx
dec ecx
mov eax, dword [esi + 0x10]
mov edx, 1
call fcn.00404218
lea eax, [esi + 0x10]
push eax
lea edx, [ebx + 1]
mov eax, dword [esi + 0x10]
mov ecx, 0x2710
call fcn.00404218
cmp dword [esi + 0x10], 0
je 0x414a96
test ebx, ebx
jne 0x414a2b
cmp dword [esi + 0x18], 0
je 0x414b52
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x18]
call fcn.00403ea8
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x41d698]
mov ecx, 1
mov edx, dword [0x405ce8]
call fcn.004048f8
add esp, 4
mov edx, dword [ebp - 0xc]
mov eax, 0x414c74
call fcn.004042a0
mov ebx, eax
mov eax, dword [0x41d698]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
lea eax, [eax + edx*4 - 4]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404218
lea eax, [ebp - 0xc]
push eax
lea edx, [ebx + 1]
mov ecx, 0x2710
mov eax, dword [ebp - 0xc]
call fcn.00404218
cmp dword [ebp - 0xc], 0
je 0x414b1b
test ebx, ebx
jne 0x414ab0
push 0
push 0
mov eax, dword [0x41d67c]
push eax
mov ecx, 0x415e4c
xor edx, edx
xor eax, eax
call fcn.00403dcc
mov edx, dword [0x41d600]
mov dword [edx], eax
mov eax, dword [0x41d600]
cmp dword [eax], 0
jbe 0x414b52
mov eax, dword [0x41d67c]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp dword [esi + 0x1c], 0
jne 0x414b65
mov eax, dword [esi + 4]
call fcn.00406164
call fcn.00414cd8
call fcn.00408844
jmp 0x414b78
push edi
call sub.user32.dll_TranslateMessage
push edi
call sub.user32.dll_DispatchMessageA
push 0
push 0
mov eax, dword [0x41d648]
mov eax, dword [eax]
push eax
push edi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x414b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414bb0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.00403e34
ret