Function at 0x432130
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3626
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x64c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x510], ecx
push ecx
lea ecx, [ebp - 0x4ec]
call fcn.0047fab0
lea eax, [ebp - 0x5c]
mov dword [ebp - method.ShadowDlg_class_KDownloadDlg_.virtual_0], vtable.ShadowDlg_class_KDownloadDlg_.0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x5c], vtable.ShadowDlg_class_KDownloadDlg_.1.0
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xa4], 0x1c
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x4c], 0x989680
mov dword [ebp - 0x50], 0
mov dword [ebp - method.KDownloadDlg.virtual_0], vtable.KDownloadDlg.0
mov dword [ebp - 0x5c], vtable.KDownloadDlg.1.0
mov dword [ebp - 0x58], vtable.KDownloadDlg.2.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x50c], 0
mov dword [ebp - 0x508], 0
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4324a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x504], eax
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4324a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x500], eax
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4324a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4fc], eax
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x4324a6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x4f4], 0
mov dword [ebp - 0x4f8], eax
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov dword [ebp - 0x50c], eax
mov eax, dword [ebp - 0x508]
mov dword [ebp - 0x4f0], 0
test eax, eax
je 0x4322cc
lea ecx, [ebp - 0x4f0]
push ecx
push eax
call esi
cmp dword [ebp - 0x4f0], 0x103
je 0x43231b
push 0xc
call fcn.00483d03
add esp, 4
lea ecx, [ebp - 0x50c]
mov dword [eax], ecx
push 0
push 0
push eax
push 0x43ed80
push 0
push 0
mov dword [eax + 8], 0
mov dword [eax + 4], 0x43e890
call fcn.005b7d25
mov ecx, dword [ebp - 0x508]
add esp, 0x18
mov edi, eax
test ecx, ecx
je 0x432315
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x508], edi
sub esp, 8
lea ecx, [ebp - 0x4ec]
call fcn.00434410
mov ecx, dword [ebp - 0x508]
mov edi, eax
mov dword [ebp - 0x4f0], 0
test ecx, ecx
je 0x432368
lea eax, [ebp - 0x4f0]
push eax
push ecx
call esi
cmp dword [ebp - 0x4f0], 0x103
jne 0x432368
mov eax, dword [ebp - 0x508]
test eax, eax
je 0x432368
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 0x504]
lea ecx, [ecx - 0x10]
call fcn.00406d70
lea esi, [eax + 0x10]
mov dword [ebp - 0x4f0], esi
mov ecx, dword [ebp - 0x510]
lea eax, [ebp - 0x4f0]
push eax
add ecx, 0x18
mov byte [ebp - 4], 2
call fcn.00406a90
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4323b6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x4f8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4323d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x4fc]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4323f4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x500]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x432411
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x504]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x43242c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x508]
test eax, eax
je 0x43244b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x508], 0
lea ecx, [ebp - 0x54]
mov dword [ebp - method.KDownloadDlg.virtual_0], vtable.KDownloadDlg.0
mov dword [ebp - 0x5c], vtable.KDownloadDlg.1.0
mov dword [ebp - 0x58], vtable.KDownloadDlg.2.0
call fcn.00432bb0
lea ecx, [ebp - 0x4ec]
mov dword [ebp - method.ShadowDlg_class_KDownloadDlg_.virtual_0], vtable.ShadowDlg_class_KDownloadDlg_.0
mov dword [ebp - 0x5c], vtable.ShadowDlg_class_KDownloadDlg_.1.0
call fcn.004338a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00483ab6
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405600
int3