Function at 0x4087a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b492
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], ebx
call sub.MFC71.DLL_CUIntArray::CUIntArray
xor esi, esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], esi
call sub.MFC71.DLL_CUIntArray::CUIntArray
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_2]
lea edi, [ebx + 0x21c]
push 0x40cadc
mov ecx, edi
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
call dword [0x40c150]
cmp dword [ebp + 0x14], esi
je 0x408811
mov dword [ebx + 0xcf4], esi
mov dword [ebx + 0xd40], esi
jmp 0x408aab
cmp dword [ebp + 8], esi
je 0x408aab
lea esi, [ebx + 0x350]
mov eax, esi
mov dword [ebp - 0x1c], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408828
sub eax, edx
mov dword [ebp + 0x14], eax
je 0x408a38
cmp dword [ebx + 4], 2
jne 0x408851
push 0x7b
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 8
jmp 0x408b0e
mov eax, dword [ebx + 0xd40]
test eax, eax
je 0x408876
mov eax, dword [ebx + 0xcf4]
test eax, eax
jne 0x408876
push 0x7c
push edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 8
jmp 0x408b0e
lea edi, [ebx + 0x370]
mov eax, edi
mov dword [ebp + 0x14], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408884
sub eax, edx
mov dword [ebp - 0x20], eax
jne 0x408898
push esi
jmp 0x408954
mov eax, dword [ebp + 8]
add eax, 0xe0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4088a3
sub eax, edx
mov dword [ebp - 0x20], eax
je 0x4089e8
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x38]
push ecx
add esi, 0xe0
push esi
mov ecx, ebx
call fcn.00408360
test eax, eax
jne 0x4088da
mov edx, dword [ebp - 0x14]
push esi
push 0x77
push edx
jmp 0x408b05
lea eax, [ebp - 0x4c]
push eax
push edi
mov ecx, ebx
call fcn.00408360
test eax, eax
jne 0x4088f6
mov ecx, dword [ebp - 0x14]
push edi
push 0x77
push ecx
jmp 0x408b05
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x44]
xor edx, edx
test eax, eax
jle 0x408944
mov edi, dword [ebp - 0x34]
xor eax, eax
test esi, esi
jle 0x408931
mov ebx, dword [ebp - 0x48]
mov edi, edi
test edx, edx
jl 0x40893f
cmp edx, dword [ebp - 0x30]
jge 0x40893f
test eax, eax
mov ecx, dword [edi + edx*4]
jl 0x40893f
cmp eax, esi
jge 0x40893f
cmp ecx, dword [ebx + eax*4]
je 0x40892e
inc eax
cmp eax, esi
jl 0x408910
mov ebx, dword [ebp - 0x18]
cmp eax, esi
je 0x408947
mov ecx, dword [ebp - 0x30]
inc edx
cmp edx, ecx
jl 0x408905
jmp 0x408947
call fcn.00409f1a
mov eax, dword [ebp + 8]
cmp edx, dword [ebp - 0x30]
jne 0x40899f
cmp eax, esi
je 0x40899f
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push 0x76
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00409f38
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f38
pop edi
pop esi
mov eax, 2
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x14]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4089a3
mov cx, word [0x40dc10]
mov eax, dword [ebp + 8]
add eax, 0xe0
mov word [edi], cx
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4089c0
mov edi, dword [ebp + 0x14]
sub eax, ecx
mov esi, ecx
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4089d0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4089f7
mov edi, dword [ebp + 0x14]
xor eax, eax
mov ecx, 0x21f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
add eax, 0x960
mov edx, ebx
sub edx, eax
add edx, 0xbf0
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408a10
mov eax, dword [ebx + 0xd30]
test eax, eax
mov dword [ebx + 0xcf4], 0
je 0x408aab
mov dword [ebx + 0xd40], 1
mov eax, dword [ebx + 0xd30]
test eax, eax
jne 0x408b0e
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x290]
mov ecx, 0x2a8
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x410c90
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
lea esi, [ebx + 0x10]
mov edx, esi
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x408a66
mov eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edi, [ebx + 0x115]
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408a87
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408a92
mov ecx, dword [str..rec]
mov dword [edi], ecx
mov dl, byte [0x40dc1c]
mov byte [edi + 4], dl
mov edi, dword [ebp - 0x18]
lea ebx, [edi + 0x370]
test ebx, ebx
je 0x408b47
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408ac1
sub eax, edx
mov dword [ebp + 8], eax
je 0x408b47
push 0xffffffffffffffff
lea esi, [edi + 0x220]
push 0
mov ecx, esi
call sub.MFC71.DLL_CUIntArray::SetSize
push esi
push ebx
mov ecx, edi
call fcn.00408360
test eax, eax
je 0x408afe
push esi
lea ecx, [edi + 0x234]
call sub.MFC71.DLL_CUIntArray::Copy
jmp 0x408b82
mov eax, dword [ebp - 0x14]
push ebx
push 0x77
push eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Format_1]
add esp, 0xc
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00409f38
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f38
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
push 0xffffffffffffffff
lea esi, [edi + 0x220]
push 0
mov ecx, esi
call sub.MFC71.DLL_CUIntArray::SetSize
mov ecx, dword [edi + 0xcf8]
xor eax, eax
test ecx, ecx
jle 0x408b82
mov ecx, dword [esi + 8]
lea edi, [eax + 1]
push edi
push ecx
mov ecx, esi
call sub.MFC71.DLL_CUIntArray::SetAtGrow
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xcf8]
mov eax, edi
cmp eax, edx
jl 0x408b64
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x228]
test eax, eax
je 0x408bea
test ebx, ebx
je 0x408bea
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b98
sub eax, edx
mov dword [ebp + 8], eax
je 0x408bea
lea edx, [ebp + 8]
push esi
push edx
call fcn.004085a0
add esp, 8
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call dword [0x40c15c]
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
mov edx, ebx
lea esp, [esp]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
test cl, cl
jne 0x408be0
mov eax, dword [edi + 0xcf4]
test eax, eax
jne 0x408c6c
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x408c6c
lea eax, [edi + 0x350]
mov dword [edi + 4], 1
mov esi, dword [0x410bc8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrDupA]
push 1
push eax
push 0x502
push esi
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x408c40
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c30
sub eax, esi
mov dword [ebp + 0x14], eax
mov eax, edx
jne 0x408c46
lea eax, [edi + 0xbf0]
push eax
lea ecx, [edi + 0xd48]
call dword [0x40c150]
lea ecx, [ebp - 0x24]
push ecx
push 0
push edi
push 0x407f70
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00409f38
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.00409f38
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10