Function at 0x46bf40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494826
mov eax, dword fs:[0]
push eax
sub esp, 0x168
push ebx
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x2c], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov ecx, 1
add dword [esi + 0x1c], ecx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
cmp dword [esi + 0x16c], ecx
jne 0x46c22c
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x30]
push eax
push esi
call fcn.00472730
mov ecx, dword [eax + 4]
mov edi, dword [eax]
lea edx, [esp + 0x114]
push edx
mov dword [esp + 0x38], ecx
call fcn.0046d080
mov dword [esp + 0x180], ebx
lea eax, [esp + 0xbc]
push eax
mov dword [esp + 0x100], ebx
mov dword [esp + 0xfc], ebx
mov dword [esp + 0x110], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x114], ebx
call fcn.00404e10
cmp edi, ebx
mov byte [esp + 0x180], 1
jle 0x46c122
mov dword [esp + 0x24], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], edi
jmp 0x46c030
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.00488a10
mov edx, dword [esp + 0x138]
cmp edx, ebx
jne 0x46c054
xor ecx, ecx
jmp 0x46c060
mov ecx, dword [esp + 0x140]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x13c]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x46c080
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x13c], eax
jmp 0x46c0ae
mov edi, eax
cmp edx, eax
jbe 0x46c08c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x12c]
push edi
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xf4]
push ecx
lea eax, [esp + 0x13c]
call fcn.00462510
mov edx, dword [esp + 0x168]
cmp edx, ebx
jne 0x46c0bd
xor ecx, ecx
jmp 0x46c0c9
mov ecx, dword [esp + 0x170]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x16c]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x46c0e9
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x16c], eax
jmp 0x46c117
mov edi, eax
cmp edx, eax
jbe 0x46c0f5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x15c]
push edi
push eax
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0x16c]
call fcn.00462510
sub dword [esp + 0x1c], 1
jne 0x46c030
mov eax, dword [esp + 0x34]
cmp eax, ebx
jle 0x46c1c8
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
jmp 0x46c140
lea ecx, [esp + 0xbc]
push ecx
lea edi, [esp + 0x118]
call fcn.00474170
mov edx, dword [esp + 0x150]
cmp edx, ebx
jne 0x46c163
xor ecx, ecx
jmp 0x46c16f
mov ecx, dword [esp + 0x158]
sub ecx, edx
sar ecx, 2
mov eax, dword [esp + 0x154]
mov edi, eax
sub edi, edx
sar edi, 2
cmp edi, ecx
jae 0x46c18f
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x154], eax
jmp 0x46c1bd
mov edi, eax
cmp edx, eax
jbe 0x46c19b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x144]
push edi
push eax
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xf4]
push eax
lea eax, [esp + 0x154]
call fcn.00462510
sub dword [esp + 0x1c], 1
jne 0x46c140
lea ecx, [esp + 0x114]
push ecx
lea edi, [esi + 4]
call fcn.00474230
mov eax, dword [esp + 0xc8]
cmp eax, ebx
je 0x46c1ec
push eax
call sub.mfc90u.dll_delete
add esp, 4
mov edx, dword [esp + 0xbc]
push edx
mov dword [esp + 0xcc], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
call sub.mfc90u.dll_delete
add esp, 4
lea esi, [esp + 0x114]
mov dword [esp + 0x180], 0xffffffff
call fcn.0046d0f0
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 0x14]
sub ecx, dword [esi + 0x10]
mov edi, dword [esi + 0x1c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xe4], edi
cmp edi, eax
jb 0x46c257
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
lea eax, [edi + edi*2]
mov edi, dword [esi + 0x10]
shl eax, 5
lea ecx, [esp + 0x5c]
add edi, eax
push ecx
mov dword [esp + 0xf4], eax
call fcn.0046d1a0
mov dword [esp + 0x180], 2
mov eax, dword [esp + 0x84]
sub eax, dword [esp + 0x80]
lea edi, [esi + 0x44]
sar eax, 2
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0x98]
push str.table
sar eax, 2
mov ecx, edi
mov dword [esp + 0x38], eax
mov dword [esp + 0xec], edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push edi
lea ebx, [esi + 0x270]
call fcn.00474390
mov eax, dword [edi]
push edi
push eax
push esi
call fcn.00470cc0
push ecx
mov ecx, esp
mov dword [esp + 0xdc], esp
push eax
call dword [0x497c80]
push esi
call fcn.00470f20
lea ecx, [esp + 0xdc]
mov dword [esp + 0x24], 0
call dword [0x497e20]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xdc]
push edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0x18c], 4
call fcn.00471de0
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea edx, [esp + 0xe0]
push edx
lea ecx, [esp + 0xe0]
call fcn.00471fe0
push 1
push edi
lea eax, [esp + 0xe8]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov ebx, esi
mov byte [esp + 0x190], 5
call fcn.00472b20
call fcn.00470270
mov edx, dword [esp + 0x2c]
cmp dword [edx + 0x16c], 1
mov ebx, dword [esp + 0x84]
je 0x46c5db
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov edi, dword [esp + 0x2c]
mov esi, dword [edi + 0xb0]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x80]
mov eax, ebx
sub eax, ecx
sar eax, 2
lea esi, [esi + eax - 1]
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], edx
test eax, eax
jbe 0x46c3ef
cmp esi, eax
jb 0x46c3d2
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + esi*4]
add edx, dword [edi + 0xb0]
mov eax, ebx
add dword [esp + 0x10], edx
sub eax, ecx
inc esi
sar eax, 2
cmp esi, eax
jb 0x46c3d2
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov esi, dword [edi + 0xb0]
sub eax, ecx
sar eax, 2
add esi, eax
lea edx, [edx + esi - 1]
xor esi, esi
mov dword [esp + 0x48], edx
test eax, eax
jbe 0x46c44e
cmp esi, eax
jb 0x46c429
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov eax, dword [ecx + esi*4]
add eax, dword [edi + 0xb0]
inc esi
add dword [esp + 0x48], eax
mov eax, dword [esp + 0x9c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x46c429
mov ebx, dword [esp + 0x84]
mov eax, 6
cmp dword [edi + 0x90], eax
je 0x46c463
mov eax, dword [edi + 0x94]
add eax, eax
add dword [esp + 0x10], eax
add dword [esp + 0x48], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 8]
sub eax, dword [edx]
cmp dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jge 0x46c5cb
sub eax, dword [esp + 0x10]
mov edx, dword [esp + 0xb0]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
sub eax, edx
xor esi, esi
sar eax, 2
mov dword [esp + 0x14], esi
test eax, eax
jbe 0x46c4e3
mov ebx, esi
cmp esi, eax
jb 0x46c4b9
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xb0]
cmp dword [edx + esi*4], 0
jne 0x46c4c0
inc ebx
mov eax, dword [esp + 0xb4]
sub eax, edx
inc esi
sar eax, 2
cmp esi, eax
jb 0x46c4b9
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0xb4]
sub eax, edx
sar eax, 2
xor esi, esi
test eax, eax
jbe 0x46c586
lea esp, [esp]
cmp dword [esp + 0x14], 0
jle 0x46c57f
cmp esi, eax
jb 0x46c51f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x84]
cmp dword [edx + esi*4], 0
jne 0x46c56e
mov eax, dword [esp + 0x20]
cdq
idiv dword [esp + 0x14]
mov edi, eax
mov eax, dword [esp + 0x80]
sub ebx, eax
sar ebx, 2
cmp esi, ebx
jb 0x46c54d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x80]
add dword [eax + esi*4], edi
sub dword [esp + 0x20], edi
dec dword [esp + 0x14]
add dword [esp + 0x10], edi
mov edx, dword [esp + 0xb0]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0xb4]
sub eax, edx
inc esi
sar eax, 2
cmp esi, eax
jb 0x46c500
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x28]
cmp dword [esp + 0x10], edx
jge 0x46c5cb
mov eax, dword [edi + 0x88]
sub eax, 1
je 0x46c5bc
sub eax, 1
jne 0x46c5cb
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 8]
sub eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov edx, eax
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x44], eax
jmp 0x46c5e2
mov eax, edx
sub eax, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x3c], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
add eax, edx
mov dword [esp + 0x44], eax
jmp 0x46c5e2
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x2c]
cmp dword [edi + 0x16c], 0
jne 0x46c6ea
mov eax, dword [edi + 0x80]
test eax, eax
jl 0x46c626
mov ecx, dword [edi + 0x78]
mov edx, dword [edi + 0x74]
mov ebx, dword [edi + 0x164]
push 0
push 5
push ecx
mov ecx, dword [edi + 0x68]
push edx
push ecx
push eax
lea edx, [edi + 0xd8]
push edx
lea eax, [esp + 0x58]
call fcn.004683c0
jmp 0x46c66e
mov edx, dword [edi + 0x84]
cmp dword [edx - 0xc], 0
lea eax, [edi + 0x84]
je 0x46c67c
push ecx
mov ecx, esp
mov dword [esp + 0xd8], esp
push eax
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_class]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x44]
sub edx, ecx
push edx
push eax
mov eax, dword [edi + 0x164]
push ecx
push eax
push edi
call fcn.00473850
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x98]
mov edx, dword [edi + 0x94]
test edx, edx
jle 0x46c6ea
cmp dword [edi + 0x14c], 0
je 0x46c6aa
mov eax, dword [edi + 0x90]
mov esi, dword [edi + 0x164]
test eax, eax
je 0x46c6ea
push edx
push eax
mov eax, dword [edi + 0x70]
push eax
mov eax, dword [edi + 0x6c]
jmp 0x46c6c3
mov esi, dword [edi + 0x90]
mov eax, dword [edi + 0x150]
test esi, esi
je 0x46c6ea
push edx
push esi
mov esi, dword [edi + 0x164]
push eax
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x50]
push ecx
push edx
push eax
mov eax, dword [esp + 0x58]
call fcn.004694b0
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x98]
cmp dword [edi + 0x16c], 1
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc8], eax
je 0x46c75e
cmp dword [edi + 0x90], 6
jne 0x46c739
lea eax, [edx + 3]
mov dword [esp + 0xbc], eax
mov eax, 3
jmp 0x46c749
mov eax, dword [edi + 0x94]
lea esi, [eax + edx]
mov dword [esp + 0xbc], esi
add dword [esp + 0xc0], eax
sub dword [esp + 0xc4], eax
sub dword [esp + 0xc8], eax
cmp dword [esp + 0x30], 0
je 0x46c898
mov esi, dword [esp + 0x34]
test esi, esi
je 0x46c898
xor edi, edi
lea ecx, [esp + 0x58]
mov dword [esp + 0x20], edi
call dword [0x497e20]
lea ecx, [esp + 0x38]
call dword [0x497e20]
lea ecx, [esp + 0x28]
call dword [0x497e20]
cmp esi, edi
mov byte [esp + 0x180], 8
mov dword [esp + 0x10], edi
jle 0x46c85c
push ecx
mov ecx, esp
mov dword [esp + 0xd8], esp
push 0x4a69a0
call dword [0x497c80]
mov edi, dword [ebp + 0xc]
lea esi, [esp + 0x24]
call fcn.00472290
test eax, eax
je 0x46c849
mov esi, dword [esp + 0x20]
lea ebx, [esp + 0x1c]
mov eax, edi
mov dword [esp + 0x1c], esi
call fcn.004729c0
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
sub ecx, esi
push ecx
push esi
lea edx, [esp + 0x2c]
push edx
mov ecx, edi
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::Mid]
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x184], 9
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_2]
lea ecx, [esp + 0x24]
mov byte [esp + 0x180], 8
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.0046d220
add ebx, 5
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jl 0x46c7ad
lea ecx, [esp + 0x28]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x38]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0x58]
mov byte [esp + 0x180], 5
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
mov ecx, dword [esp + 0x98]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
cmp dword [edi + 0x16c], 0
je 0x46cf93
mov esi, dword [esp + 0x68]
mov eax, 1
cmp dword [esp + 0x30], eax
mov dword [esp + 0x10], eax
jl 0x46cc2e
mov edi, dword [esp + 0x80]
cmp dword [esp + 0x34], 0
mov dword [esp + 0x4c], 0
jle 0x46cc14
mov dword [esp + 0x1c], 0
mov edi, edi
mov ecx, dword [esp + 0x6c]
sub ecx, esi
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x4c], eax
jb 0x46c915
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x18], 0
jle 0x46cbfc
mov eax, dword [esp + 0x1c]
lea ecx, [eax + esi + 0x10]
lea edx, [eax + esi + 0xc]
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xd4], ecx
lea ecx, [eax*4 - 4]
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], ecx
mov edx, dword [esp + 0xd4]
mov ecx, dword [edx]
mov eax, dword [esp + 0x58]
sub ecx, dword [eax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [esp + 0x18], ecx
jb 0x46c994
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x58]
mov esi, dword [edx]
add esi, dword [esp + 0x54]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], esi
cmp dword [esi], eax
jne 0x46cbd3
cmp eax, 1
jne 0x46ca77
mov eax, ebx
sub eax, edi
sar eax, 2
cmp dword [esp + 0x18], eax
jb 0x46c9d8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
cmp dword [ecx + edi], eax
jle 0x46ca12
mov edx, ebx
sub edx, edi
sar edx, 2
cmp dword [esp + 0x18], edx
jb 0x46ca05
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + edi]
mov dword [esp + 0x20], ecx
jmp 0x46ca16
mov dword [esp + 0x20], eax
sub ebx, edi
sar ebx, 2
cmp dword [esp + 0x18], ebx
jb 0x46ca2e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x80]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [eax + edi], edx
cmp dword [esi + 0x18], 0
je 0x46cbc5
mov ecx, dword [esp + 0xb4]
sub ecx, dword [esp + 0xb0]
sar ecx, 2
cmp dword [esp + 0x18], ecx
jb 0x46ca60
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xb0]
mov dword [edx + eax], 1
jmp 0x46cbc5
xor ecx, ecx
mov dword [esp + 0x20], ecx
test eax, eax
jle 0x46cb30
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], edx
mov ecx, ebx
sub ecx, edi
sar ecx, 2
cmp dword [esp + 0x28], ecx
jb 0x46cac8
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0xb4]
mov edx, dword [esi + edi]
mov ecx, dword [esp + 0x24]
add dword [esp + 0x20], edx
cmp dword [ecx + 0x18], 0
je 0x46cb12
sub eax, dword [esp + 0xb0]
sar eax, 2
cmp dword [esp + 0x28], eax
jb 0x46caef
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edx, dword [esp + 0xb0]
mov dword [esi + edx], 1
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov ecx, 1
add dword [esp + 0x28], ecx
add esi, 4
sub dword [esp + 0x38], ecx
jne 0x46caa0
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp ecx, dword [esi + 8]
jge 0x46cbd3
mov eax, dword [esi + 0x10]
sub eax, ecx
cdq
idiv dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
sub ebx, edi
sar ebx, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
lea edx, [ecx + eax - 1]
cmp edx, ebx
jb 0x46cb6d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x80]
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
sub eax, dword [esp + 0x20]
xor ebx, ebx
cdq
idiv ecx
mov eax, dword [esp + 0x50]
add dword [eax + edi], edx
test ecx, ecx
jle 0x46cbc5
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x18]
sub ecx, eax
sar ecx, 2
add edx, ebx
cmp edx, ecx
jb 0x46cbb6
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
add dword [esi + eax], ecx
inc ebx
add esi, 4
cmp ebx, edi
jl 0x46cb8c
mov ebx, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
add dword [esp + 0x54], 0x1c
mov ecx, 4
add dword [esp + 0x14], ecx
add dword [esp + 0x50], ecx
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
jl 0x46c958
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x1c], 0x18
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x4c], eax
jl 0x46c8e0
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
jle 0x46c8c3
mov ecx, dword [esp + 0x98]
mov eax, 1
cmp dword [esp + 0x34], eax
mov dword [esp + 0x10], eax
jl 0x46cec3
cmp dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
jle 0x46cea9
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x54], eax
mov edi, edi
mov edx, dword [esp + 0x6c]
sub edx, esi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x46cc8e
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x68]
cmp dword [esp + 0x30], 0
mov dword [esp + 0x4c], 0
jle 0x46ce8c
mov eax, dword [esp + 0x54]
lea edx, [esi + eax + 0x10]
lea eax, [esi + eax + 0xc]
mov dword [esp + 0xd4], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x50], 0
mov edx, dword [esp + 0xd4]
mov esi, dword [edx]
mov edi, dword [esp + 0x24]
sub esi, dword [edi]
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x4c], eax
jb 0x46ccf5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov eax, dword [edi]
add eax, dword [esp + 0x50]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
cmp dword [eax + 4], edx
jne 0x46ce70
mov eax, edx
cmp eax, 1
jne 0x46cd95
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0x14]
mov edx, eax
sub edx, ecx
sar edx, 2
cmp ebx, edx
jb 0x46cd41
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x1c]
mov edx, dword [edx + 0x14]
mov edi, dword [esp + 0x18]
cmp dword [ecx + edi], edx
jle 0x46cd75
mov edx, eax
sub edx, ecx
sar edx, 2
cmp ebx, edx
jb 0x46cd70
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x98]
mov esi, dword [ecx + edi]
jmp 0x46cd77
mov esi, edx
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x46cd8d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov dword [ecx + edi], esi
jmp 0x46ce69
xor esi, esi
xor ebx, ebx
test eax, eax
jle 0x46cdd1
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x14]
sub eax, ecx
sar eax, 2
add edx, ebx
cmp edx, eax
jb 0x46cdc4
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
add esi, dword [edi + ecx]
inc ebx
add edi, 4
cmp ebx, dword [esp + 0x10]
jl 0x46cda1
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x14]
cmp esi, eax
jge 0x46ce70
mov edi, dword [esp + 0x10]
sub eax, esi
cdq
idiv edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x9c]
sub eax, ecx
sar eax, 2
cmp dword [esp + 0x14], eax
jb 0x46ce0c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x14]
sub eax, esi
cdq
idiv edi
mov esi, dword [esp + 0x18]
xor ebx, ebx
add dword [ecx + esi], edx
test edi, edi
jle 0x46ce69
jmp 0x46ce30
mov ecx, dword [esp + 0x9c]
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x14]
sub ecx, eax
sar ecx, 2
add edx, ebx
cmp edx, ecx
jb 0x46ce5a
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x38]
add dword [eax + esi], ecx
inc ebx
add esi, 4
cmp ebx, edi
jl 0x46ce30
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x4c]
add dword [esp + 0x50], 0x1c
inc eax
cmp eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
jl 0x46ccc0
mov esi, dword [esp + 0x68]
mov eax, dword [esp + 0x14]
add dword [esp + 0x54], 0x18
add dword [esp + 0x18], 4
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
jl 0x46cc60
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x34]
mov dword [esp + 0x10], eax
jle 0x46cc41
mov ebx, dword [esp + 0x84]
mov eax, dword [esp + 0x2c]
mov edx, dword [eax + 0xb0]
mov esi, dword [esp + 0x30]
lea edi, [edx + esi - 1]
mov esi, dword [ebp + 8]
add dword [esi], edi
mov edi, dword [esp + 0x34]
lea edx, [edx + edi - 1]
add dword [esi + 4], edx
xor edi, edi
cmp dword [esp + 0x30], edi
jle 0x46cf30
mov ecx, dword [esp + 0x80]
mov edx, ebx
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x46cf17
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ebx, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + edi*4]
add edx, dword [eax + 0xb0]
inc edi
add dword [esi], edx
cmp edi, dword [esp + 0x30]
jl 0x46cef4
mov ecx, dword [esp + 0x98]
xor edi, edi
cmp dword [esp + 0x34], edi
jle 0x46cf74
jmp 0x46cf40
mov edx, dword [esp + 0x9c]
sub edx, ecx
sar edx, 2
cmp edi, edx
jb 0x46cf61
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov ecx, dword [esp + 0x98]
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx + edi*4]
add edx, dword [eax + 0xb0]
inc edi
add dword [esi + 4], edx
cmp edi, dword [esp + 0x34]
jl 0x46cf40
cmp dword [eax + 0x90], 6
mov edi, dword [esp + 0x2c]
mov eax, dword [eax + 0x94]
jne 0x46cf8a
lea eax, [eax + eax*2]
add eax, eax
add dword [esi], eax
add dword [esi + 4], eax
jmp 0x46cfa9
mov ecx, dword [esp + 0x44]
mov eax, dword [ebp + 8]
sub ecx, edx
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x14]
sub ecx, dword [edi + 0x10]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0xe4], eax
jb 0x46cfcf
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov esi, dword [edi + 0x10]
add esi, dword [esp + 0xf0]
lea ecx, [esp + 0x5c]
push ecx
push esi
call fcn.00473fe0
lea edx, [esi + 0x18]
push edx
lea ebx, [esp + 0x78]
call fcn.00463770
lea eax, [esi + 0x30]
push eax
lea ebx, [esp + 0x90]
call fcn.00463770
add esi, 0x48
push esi
lea ebx, [esp + 0xa8]
call fcn.00463770
mov ecx, dword [esp + 0xe8]
push str.table
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::operator_3]
push 1
mov ecx, edi
call fcn.00470030
test eax, eax
je 0x46d037
mov esi, edi
call fcn.00470270
lea ecx, [esp + 0xe0]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea ecx, [esp + 0xdc]
call dword [sym.imp.mfc90u.dll_ATL::CStringT_wchar_t_class_StrTraitMFC_DLL_wchar_t_class_ATL::ChTraitsCRT_wchar_t_____::CStringT_wchar_t_clas]
lea esi, [esp + 0x5c]
call fcn.0046d0f0
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc