Function at 0x10045ed0
Capabilities:
Create thread

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10073228
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
lea edi, [esi + 0x50]
mov ecx, edi
call fcn.1004d330
lea ecx, [esi + 0x68]
call fcn.1005a9f0
mov ecx, edi
call fcn.1004d380
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
cmp ebp, ebx
jl 0x100460b5
mov ecx, dword [esi + 0x5c]
cmp ecx, ebx
jne 0x10045f22
xor eax, eax
jmp 0x10045f2a
mov eax, dword [esi + 0x60]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jge 0x100460b5
mov ecx, edi
call fcn.1004d330
mov ecx, edi
mov dword [esi + 0x40], ebx
call fcn.1004d380
mov ecx, dword [esi + 0x44]
lea eax, [esi + 0x2c]
push 1
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esi + 0x268]
mov byte [esi + 0x271], bl
cmp eax, ebx
mov dword [esi + 0x274], ebx
je 0x10045f78
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10045f92
lea edx, [esp + 0x28]
push edx
push ebx
push esi
push 0x10047000
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x268], eax
mov ecx, esi
mov dword [esi + 0x27c], ebp
call fcn.1004bce0
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x27c]
push 0x1009bcc4
mov edx, dword [eax + ecx*4]
add edx, 0x20
push edx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 8
test al, al
je 0x10045fef
push 4
call fcn.1003bfe0
mov ecx, dword [esi + 0x27c]
add esp, 4
mov dword [eax], ecx
mov edx, dword [esi + 0x28c]
push eax
mov eax, dword [esi + 0x284]
push 5
push edx
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
jmp 0x100460bc
cmp dword [esi + 0x294], ebx
je 0x100460bc
lea ecx, [esp + 0x10]
call fcn.1004c100
push 0x34
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], 0x34
call fcn.1003bfe0
mov ecx, dword [esp + 0x18]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x14], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x10]
mov word [eax + 6], 0x2c
mov edx, dword [esi + 0x5c]
mov edi, dword [esi + 0x27c]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + edi*4]
lea ecx, [eax + 8]
mov edx, dword [edx + 0x70]
mov dword [eax], edx
mov eax, dword [esp + 0x10]
mov word [eax + 4], 0x65
mov dword [ecx], 1
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x27c]
mov eax, dword [eax + edx*4]
add eax, 0x10
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x10046081
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
add ecx, 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esi + 0x294]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esi]
push ecx
push edx
push esi
call dword [eax + 0x24]
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 0xffffffff
call fcn.10054960
jmp 0x100460bc
mov ecx, esi
call fcn.1004c920
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8