Function at 0x476710
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x57e5b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
mov ebp, ecx
mov eax, dword [0x5f3d94]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x254], 3
jne 0x47679c
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x254], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2cc]
mov byte [esp + 0x254], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x254], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x314]
mov dword [esp + 0x254], 0xffffffff
call sub.MFC42.DLL_CString::CString
jmp 0x476bcd
mov eax, dword [0x5f3d90]
push esi
cmp eax, ebx
push edi
jne 0x4769a9
cmp dword [0x5e57d8], ebx
je 0x4769a9
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x46]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0042a320
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1b
lea esi, [esp + 0x264]
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x80]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2d8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2dc]
push ecx
push edx
call fcn.0043bab0
mov ecx, 0x10
lea esi, [esp + 0x2e8]
lea edi, [esp + 0x100]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x48
lea esi, [esp + 0x14]
lea edi, [esp + 0x134]
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x5f3cf8]
mov ecx, 0x5f3cf0
lea eax, [esi + 1]
push eax
call fcn.004838e0
mov eax, dword [0x5f3cf4]
lea edi, [esi + esi*8]
shl edi, 5
add edi, eax
mov ecx, 0x48
lea esi, [esp + 0x134]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [0x5f3ce0]
lea ecx, [esp + 0x31c]
push ecx
push edx
mov ecx, 0x5f3cd8
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edx, dword [ebp]
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, ebp
call dword [edx + 0x7c]
mov eax, dword [eax + 0x20]
push eax
push 0x4773e0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x476b79
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x46]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
call fcn.0042a320
mov edi, 0x5f3788
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x80]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5f3788
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x1b
lea esi, [esp + 0x264]
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x80]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xb2]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2d8]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xe8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2dc]
push ecx
push edx
call fcn.0043bab0
mov ecx, 0x10
lea esi, [esp + 0x2e8]
lea edi, [esp + 0x100]
add esp, 0xc
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x48
lea esi, [esp + 0x14]
lea edi, [esp + 0x134]
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x150]
lea esi, [ebp + 0x148]
mov ecx, esi
lea eax, [edi + 1]
push eax
call fcn.004838e0
mov eax, dword [esi + 4]
lea edi, [edi + edi*8]
shl edi, 5
add edi, eax
mov ecx, 0x48
lea esi, [esp + 0x134]
lea edx, [esp + 0x31c]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x164]
lea ecx, [ebp + 0x15c]
push edx
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
lea ecx, [esp + 0x2d0]
mov byte [esp + 0x25c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2d4]
mov byte [esp + 0x25c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2d8]
mov byte [esp + 0x25c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x31c]
mov dword [esp + 0x25c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov ecx, dword [esp + 0x24c]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret 0xbc