Function at 0x50542b05
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 0x78], edi
jne 0x50542ff5
push 0x993
push dword [ebx + 0x28]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x50532cac
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0xc], edi
call fcn.5053c7a1
mov esi, 0x5055df50
mov ecx, esi
call fcn.5053af37
push eax
lea ecx, [ebp - 0x24]
call fcn.5053aef5
lea eax, [ebp - 0x20]
push eax
mov eax, 0x50538688
push eax
push eax
mov ecx, esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x28], edi
mov dword [ebx + 0x78], 1
mov dword [ebx + 0x88], edi
call fcn.50538f90
test eax, eax
jl 0x50542f1e
cmp dword [ebx + 0x64], edi
jne 0x50542c1a
mov eax, dword [ebx + 0x20]
cmp eax, edi
mov dword [ebp - 8], edi
jne 0x50542be0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call esi
lea ecx, [ebp - 0x10]
call fcn.50556058
lea ecx, [ebp - 0x24]
call fcn.50556058
push dword [ebp - 0x30]
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x20]
call fcn.50556058
lea ecx, [ebp - 0x1c]
call fcn.50556058
or eax, 0xffffffff
jmp 0x50542ff7
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x78]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
lea ecx, [ebx + 0x64]
push ecx
push 0x505386e8
push dword [ebp - 8]
push dword [ebp - 0x30]
push eax
call dword [edx + 0x2c]
test eax, eax
push dword [ebp - 8]
jge 0x50542c14
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x50542f1e
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0xc]
push eax
push 0x996
push dword [ebx + 0x60]
call fcn.5053dd0c
mov eax, dword [ebp - 0xc]
cmp word [eax], di
je 0x50542f1e
push eax
lea ecx, [ebx + 0x6c]
call fcn.5053dc29
push 0x997
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x50542c58
mov dword [ebp - 4], ecx
push 0x998
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x50542c6f
or dword [ebp - 4], 2
push 0x999
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
jne 0x50542c86
or dword [ebp - 4], 4
push dword [ebp - 0x38]
push 0x50542284
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_EnumChildWindows]
lea eax, [ebp - 0x10]
push eax
mov eax, 0x50537188
push eax
push eax
mov ecx, esi
call fcn.50538f90
cmp dword [ebp - 0x10], edi
je 0x50542ce1
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push 0x130
push dword [0x5055e284]
mov word [ebp - 0x48], 3
call dword [sym.imp.USER32.dll_LoadBitmapA]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x18]
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [ebp - 0x14], eax
je 0x50542f1e
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x50542f1e
push 0x14
call sub.MSVCR70.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
je 0x50542d26
push dword [ebp - 0x18]
mov ecx, eax
push dword [ebp - 0x14]
call fcn.505422b6
jmp 0x50542d28
xor eax, eax
cmp eax, edi
mov dword [ebx + 0x84], eax
je 0x50542f1e
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x2c]
push 0x7f00
push edi
mov dword [ebp - 0x34], 1
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
lea eax, [ebp - 0x4c]
push eax
push edi
push dword [ebx + 0x84]
push 0x50542a7e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [ebp - 0x2c], eax
je 0x50542f1e
push edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.5054fe3d
push dword [ebp - 0xc]
mov ecx, dword [ebx + 0x84]
call fcn.50542300
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax]
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 4]
push dword [ebp - 0xc]
push eax
call dword [ecx + 0x1c]
test eax, eax
jge 0x50542dc4
mov dword [ebx + 0x88], 1
jmp 0x50542dd3
mov eax, dword [ebx + 0x84]
mov eax, dword [eax + 0x10]
mov dword [ebx + 0x88], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 0x88], edi
jne 0x50542f1e
mov ecx, dword [ebx + 0x84]
cmp ecx, edi
je 0x50542e0e
call fcn.505422d0
mov ecx, dword [ebx + 0x84]
cmp ecx, edi
je 0x50542e08
push 1
call fcn.505424c0
mov dword [ebx + 0x84], edi
lea eax, [ebp - 4]
push eax
mov eax, 0x50537988
push eax
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.50538f90
test eax, eax
jl 0x50542e82
mov esi, 0x50532c98
lea edi, [ebp - 0x254]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 0xc]
push 0x7d
xor eax, eax
pop ecx
lea edi, [ebp - 0x242]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR70.dll_wcslen]
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x254]
push esi
push eax
call dword [sym.imp.MSVCR70.dll_wcsncat]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x254]
push edx
push eax
call dword [ecx + 0x10]
xor edi, edi
lea ecx, [ebp - 4]
call fcn.50556058
push 0x7f02
push edi
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x1c], edi
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
je 0x50542f0e
mov eax, dword [ebx + 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x505324d0
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x50542f0e
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x50542f0e
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x50542f0e
mov eax, dword [ebp - 8]
push dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
push 0x999
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
lea ecx, [ebp - 4]
call fcn.50556058
lea ecx, [ebp - 8]
call fcn.50556058
mov ecx, dword [ebx + 0x84]
cmp ecx, edi
je 0x50542f44
call fcn.505422d0
mov ecx, dword [ebx + 0x84]
cmp ecx, edi
je 0x50542f3e
push 1
call fcn.505424c0
mov dword [ebx + 0x84], edi
cmp dword [ebp - 0x28], edi
je 0x50542f52
push dword [ebp - 0x28]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [ebp - 0x18], edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x88], edi
mov dword [ebx + 0x78], edi
je 0x50542f6b
push dword [ebp - 0x18]
call esi
cmp dword [ebp - 0x14], edi
je 0x50542f75
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x34], edi
je 0x50542f85
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x2c]
push dword [ebp - 0x38]
push 0x5054229d
push dword [ebx + 0x60]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x50542fc0
mov ecx, dword [eax]
lea edx, [ebp - 0x48]
push edx
push edi
push eax
call dword [ecx + 0x18]
cmp dword [ebp - 0x40], edi
je 0x50542fb6
push dword [ebp - 0x40]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [ebp - 0x2c]
call esi
lea ecx, [ebp - 0x10]
call fcn.50556058
lea ecx, [ebp - 0x24]
call fcn.50556058
push dword [ebp - 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0xc]
call esi
lea ecx, [ebp - 0x20]
call fcn.50556058
lea ecx, [ebp - 0x1c]
call fcn.50556058
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10