Function at 0x545910
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5bf137
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push ebp
mov dword [esp + 0x14], ecx
push esi
or eax, 0xffffffff
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString_1
mov ebp, dword [esp + 0xc8]
mov dword [esp + 0xbc], 0
lea eax, [ebp + 1]
push eax
call sub.MFC42.DLL_operatornew
mov esi, dword [esp + 0xc8]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
mov edi, ebx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + ebp]
and ecx, 3
cmp ebx, eax
rep movsb byte es:[edi], byte [esi]
mov esi, ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x48], eax
mov byte [eax], 0
mov dword [esp + 0x2c], esi
jae 0x5460c2
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
lea eax, [esp + 0x24]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [esp + 0x24]
push esi
call fcn.00547de0
test al, al
je 0x5460c2
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x5459e3
mov dl, byte [edi + esi]
lea ecx, [esp + 0x10]
push edx
call fcn.00596ed0
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x5459cd
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x10]
xor edi, edi
cmp dword [eax - 8], edi
je 0x5460ac
push 0x28
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, edi
je 0x545a31
mov dword [eax + 0x24], edi
mov dword [eax + 0x10], edi
mov dword [eax + 0x20], edi
mov dword [eax + 0x1c], edi
mov dword [eax + 4], edi
mov dword [eax], edi
mov dword [eax + 0x14], edi
mov dword [eax + 0xc], edi
mov dword [eax + 8], edi
mov dword [eax + 0x18], edi
mov edi, eax
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov dword [esp + 0x44], edi
call sub.MFC42.DLL_CString::CString_2
call fcn.004eb710
mov dword [edi + 8], eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp dword [eax - 8], 3
jle 0x545a9a
lea ecx, [esp + 0x70]
push 3
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
push 0x62cfa0
push eax
call esi
add esp, 8
lea ecx, [esp + 0x70]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x545aa0
push 0x62cfa0
jmp 0x545f11
mov esi, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov edx, dword [esp + 0x10]
mov ebp, 4
cmp dword [edx - 8], ebp
jle 0x545ae6
lea eax, [esp + 0x60]
push ebp
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str.MSTR
push eax
call esi
add esp, 8
lea ecx, [esp + 0x60]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x545ae6
push 0x62cfa0
jmp 0x545f11
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 8], ebp
jle 0x545b27
lea edx, [esp + 0x68]
push ebp
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str.MISS
push eax
call esi
add esp, 8
lea ecx, [esp + 0x68]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x545b27
push 0x62cfa0
jmp 0x545f11
mov eax, dword [esp + 0x10]
cmp dword [eax - 8], ebp
jle 0x545b68
lea ecx, [esp + 0x4c]
push ebp
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push str.MIST
push eax
call esi
add esp, 8
lea ecx, [esp + 0x4c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x545b68
push 0x62cfa0
jmp 0x545f11
mov edx, dword [esp + 0x10]
cmp dword [edx - 8], ebp
jle 0x545f0c
push 0x606ca8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jle 0x545f0c
push 0x606ca0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jle 0x545f0c
push 0x606ca8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
mov esi, eax
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 1]
mov byte [esp + 0x78], cl
mov edx, dword [esp + 0x78]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 2]
mov byte [esp + 0x54], cl
mov edx, dword [esp + 0x54]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 3]
mov byte [esp + 0x6c], cl
mov edx, dword [esp + 0x6c]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 4]
mov byte [esp + 0x5c], cl
mov edx, dword [esp + 0x5c]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 5]
mov byte [esp + 0x7c], cl
mov edx, dword [esp + 0x7c]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 6]
mov byte [esp + 0x64], cl
mov edx, dword [esp + 0x64]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
mov cl, byte [esi + eax + 7]
mov byte [esp + 0x74], cl
mov edx, dword [esp + 0x74]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x545f1b
mov eax, dword [esp + 0x10]
cmp byte [esi + eax + 8], 0x29
jne 0x545f1b
push 0x62cfa0
call fcn.004eb620
mov ecx, dword [esp + 0x40]
add esp, 4
inc esi
lea edx, [esp + 0x14]
mov dword [ecx], eax
push esi
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
mov byte [esp + 0xc0], 1
call esi
mov ecx, dword [esp + 0x18]
mov ebp, eax
add ecx, 5
push ecx
call esi
mov edi, eax
add esp, 8
cmp edi, 0x32
jle 0x545cfd
add edi, 0x76c
jmp 0x545d03
add edi, 0x7d0
cmp ebp, 1
jl 0x545ef9
cmp ebp, 0x1f
jge 0x545ef9
mov ecx, dword [0x607638]
mov dl, byte [0x63547c]
xor eax, eax
mov dword [esp + 0x84], ecx
mov ecx, dword [0x607628]
mov word [esp + 0x81], ax
mov byte [esp + 0x80], dl
mov edx, dword [0x607634]
mov byte [esp + 0x83], al
mov eax, dword [0x607630]
mov dword [esp + 0x90], ecx
mov ecx, dword [0x60761c]
mov dword [esp + 0x88], edx
mov edx, dword [0x60762c]
mov dword [esp + 0x8c], eax
mov eax, dword [0x607624]
mov dword [esp + 0x9c], ecx
mov ecx, dword [0x607610]
mov dword [esp + 0x94], edx
mov edx, dword [0x607620]
mov dword [esp + 0x98], eax
mov eax, dword [0x607618]
mov dword [esp + 0xa8], ecx
push 3
lea ecx, [esp + 0x34]
mov dword [esp + 0xa4], edx
mov edx, dword [0x607614]
mov dword [esp + 0xa8], eax
mov eax, dword [0x60760c]
push 2
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], eax
call sub.MFC42.DLL_CString::Mid_1
mov byte [esp + 0xbc], 2
mov esi, 1
lea ebx, [esp + 0x84]
mov edx, dword [esp + 0x30]
push ebx
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x545e12
inc esi
add ebx, 4
cmp esi, 0xd
jl 0x545df1
jmp 0x545ee8
test esi, esi
jle 0x545ee8
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_1
push ebp
push esi
push edi
lea eax, [esp + 0x34]
push 0x607528
push eax
mov byte [esp + 0xd0], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x2c]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_2
call fcn.004eb710
mov ebx, dword [esp + 0x40]
add esp, 4
lea ecx, [esp + 0x50]
push 0xffffffffffffffff
push 0
push 0
push 0
push ebp
push esi
push edi
mov dword [ebx + 4], eax
call sub.MFC42.DLL_CTime::CTime_1
push ecx
mov ecx, dword [esp + 0x54]
mov eax, esp
lea edx, [esp + 0x5c]
mov dword [esp + 0x3c], esp
push edx
mov dword [eax], ecx
lea eax, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CTime::GetTickCount
mov ecx, eax
call fcn.0042e8e0
mov ecx, dword [esp + 0x58]
mov eax, 0x91a2b3c5
imul ecx
add edx, ecx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 0x19aa0
jle 0x545ed7
mov edi, 0x62cfb0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [ebx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x28]
mov byte [esp + 0xbc], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0xbc], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 0
call sub.MFC42.DLL_CString::CString
jmp 0x545f1b
push 0x62cfb0
call fcn.004eb620
add esp, 4
mov dword [edi], eax
mov ebx, dword [esp + 0x1c]
xor edi, edi
mov ecx, dword [ebx + 0x409c]
mov eax, dword [ebx + 0x4098]
mov ebp, ecx
mov dword [esp + 0x38], ebp
inc ebp
cmp ebp, edi
jne 0x545f60
cmp eax, edi
je 0x545f4f
push eax
mov dword [esp + 0x24], ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x4098], edi
mov dword [ebx + 0x40a0], edi
mov dword [ebx + 0x409c], edi
jmp 0x54608c
cmp eax, edi
jne 0x545f9f
lea esi, [ebp*4]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x4098], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x40a0], ebp
mov dword [ebx + 0x409c], ebp
jmp 0x54608c
mov esi, dword [ebx + 0x40a0]
cmp ebp, esi
jg 0x545fd9
cmp ecx, ebp
jge 0x545fc6
mov edx, ebp
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.00575750
mov dword [ebx + 0x409c], ebp
jmp 0x54608c
jle 0x545fce
sub ecx, ebp
mov dword [esp + 0x20], ecx
mov dword [ebx + 0x409c], ebp
jmp 0x54608c
mov eax, dword [ebx + 0x40a4]
cmp eax, edi
jne 0x546006
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x545ffa
mov eax, 4
jmp 0x546006
cmp eax, 0x400
jle 0x546006
mov eax, 0x400
add eax, esi
cmp ebp, eax
mov dword [esp + 0x20], eax
jl 0x546014
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x20]
lea edx, [ecx*4]
push edx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x20]
mov edi, ebx
add esp, 4
mov ecx, dword [eax + 0x409c]
mov esi, dword [eax + 0x4098]
shl ecx, 2
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, dword [esi + 0x409c]
sub ecx, eax
lea edx, [ebx + eax*4]
push ecx
push edx
call fcn.00575750
mov eax, dword [esi + 0x4098]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x24]
mov dword [esi + 0x4098], ebx
add esp, 4
mov dword [esi + 0x409c], ebp
mov dword [esi + 0x40a0], eax
mov ebx, esi
mov ecx, dword [ebx + 0x4098]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0xc8]
mov dword [ecx + eax*4], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
add esi, ecx
cmp esi, eax
mov dword [esp + 0x2c], esi
jb 0x54599c
push ebx
call sub.MFC42.DLL_operatordelete
mov edx, dword [esp + 0xc8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [edx + ebp]
mov dword [esp + 0x2c], edi
lea ebx, [ecx + edx - 1]
cmp edi, ebx
mov dword [esp + 0x40], ebx
jae 0x5465a1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push edi
call fcn.00547de0
test al, al
je 0x5465a1
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
cmp esi, eax
jge 0x54613c
mov al, byte [esi + edi]
lea ecx, [esp + 0x10]
push eax
call fcn.00596ed0
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x546126
push str.SSR_INFT
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find_1
test eax, eax
jl 0x546591
mov edi, str.SSR_INFT
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
or ecx, 0xffffffff
add esi, ebx
xor bl, bl
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov edi, 5
add ebp, 0xfffffff6
cmp ebp, edi
mov byte [esp + 0xbc], 4
jle 0x546578
test bl, bl
jne 0x546224
mov cl, byte [edi + esi - 5]
push ecx
call fcn.004edd20
add esp, 4
test al, al
je 0x5462d3
mov dl, byte [edi + esi - 4]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x5462d3
mov al, byte [edi + esi - 3]
push eax
call fcn.004edd40
add esp, 4
test al, al
je 0x5462d3
mov cl, byte [edi + esi - 2]
push ecx
call fcn.004edd40
add esp, 4
test al, al
je 0x5462d3
mov dl, byte [edi + esi - 1]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x5462d3
mov al, byte [edi + esi]
push eax
call fcn.004eddc0
add esp, 4
test al, al
je 0x5462d3
mov bl, 1
jmp 0x5462d3
cmp bl, 1
jne 0x5462c6
mov cl, byte [edi + esi]
push ecx
call fcn.004eddc0
add esp, 4
test al, al
je 0x5462c6
mov dl, byte [edi + esi + 1]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x5462c6
mov al, byte [edi + esi + 2]
push eax
call fcn.004edd20
add esp, 4
test al, al
je 0x5462c6
mov cl, byte [edi + esi + 3]
push ecx
call fcn.004edd40
add esp, 4
test al, al
je 0x5462c6
mov dl, byte [edi + esi + 4]
push edx
call fcn.004edd40
add esp, 4
test al, al
je 0x5462c6
mov al, byte [edi + esi + 5]
push eax
call fcn.004edd40
add esp, 4
test al, al
je 0x5462c6
mov cl, byte [edi + esi + 6]
push ecx
call fcn.004edd20
add esp, 4
test al, al
je 0x5462c6
mov dl, byte [edi + esi + 7]
push edx
call fcn.004edd20
add esp, 4
test al, al
je 0x5462c6
cmp byte [edi + esi + 8], 0x2f
jne 0x5462c6
cmp byte [edi + esi + 9], 0x50
je 0x5462e1
mov al, byte [edi + esi]
lea ecx, [esp + 0x14]
push eax
call fcn.00596ed0
inc edi
cmp edi, ebp
jl 0x546198
jmp 0x546578
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [edi + esi + 0xa]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x34], eax
xor esi, esi
add esp, 4
mov eax, dword [ebx + 0x409c]
xor edi, edi
cmp eax, esi
mov byte [esp + 0x1b], 0
jle 0x546399
mov edx, dword [ebx + 0x4098]
mov esi, 0x62cc7c
mov ebp, dword [edx + edi*4]
mov eax, dword [ebp]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x546351
test cl, cl
je 0x54634d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x546351
add eax, 2
add esi, 2
test cl, cl
jne 0x54632d
xor eax, eax
jmp 0x546356
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x546380
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x546380
mov ecx, dword [esp + 0x30]
mov eax, dword [ebp + 0x18]
cmp eax, ecx
jne 0x546380
mov byte [esp + 0x1b], 1
mov eax, dword [ebx + 0x409c]
inc edi
cmp edi, eax
jl 0x54631c
mov al, byte [esp + 0x1b]
test al, al
jne 0x546578
xor esi, esi
push 0x28
call sub.MFC42.DLL_operatornew
add esp, 4
cmp eax, esi
je 0x5463c6
mov dword [eax + 0x24], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 4], esi
mov dword [eax], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0xc], esi
mov dword [eax + 8], esi
mov dword [eax + 0x18], esi
mov esi, eax
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov dword [esp + 0x30], esi
call sub.MFC42.DLL_CString::CString_2
call fcn.004eb710
push 0x62cc7c
mov dword [esi + 8], eax
call fcn.004eb620
mov dword [esi], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x409c]
mov ebp, eax
add esp, 8
mov dword [esp + 0x48], ebp
inc ebp
xor edi, edi
cmp ebp, edi
jne 0x54643a
mov ecx, dword [ebx + 0x4098]
cmp ecx, edi
je 0x546429
push ecx
mov dword [esp + 0x48], eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [ebx + 0x4098], edi
mov dword [ebx + 0x40a0], edi
mov dword [ebx + 0x409c], edi
jmp 0x54656b
mov edx, dword [ebx + 0x4098]
cmp edx, edi
jne 0x546481
lea edi, [ebp*4]
push edi
call sub.MFC42.DLL_operatornew
mov edx, eax
mov ecx, edi
mov dword [ebx + 0x4098], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x40a0], ebp
mov dword [ebx + 0x409c], ebp
jmp 0x54656b
mov edi, dword [ebx + 0x40a0]
cmp ebp, edi
jg 0x5464b8
cmp eax, ebp
jge 0x5464a5
mov ecx, ebp
lea edi, [edx + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov dword [ebx + 0x409c], ebp
jmp 0x54656b
jle 0x5464ad
sub eax, ebp
mov dword [esp + 0x44], eax
mov dword [ebx + 0x409c], ebp
jmp 0x54656b
mov ecx, dword [ebx + 0x40a4]
test ecx, ecx
jne 0x5464e6
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x5464d9
mov ecx, 4
jmp 0x5464e6
cmp ecx, 0x400
jle 0x5464e6
mov ecx, 0x400
lea eax, [edi + ecx]
cmp ebp, eax
mov dword [esp + 0x20], eax
jl 0x5464f5
mov dword [esp + 0x20], ebp
mov eax, dword [esp + 0x20]
lea ecx, [eax*4]
push ecx
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x20]
mov edi, ebx
mov ecx, dword [eax + 0x409c]
mov esi, dword [eax + 0x4098]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov ecx, ebp
mov eax, dword [esi + 0x409c]
sub ecx, eax
lea edi, [ebx + eax*4]
xor eax, eax
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x4098]
push eax
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
mov dword [esi + 0x4098], ebx
mov ebx, dword [esp + 0x24]
mov dword [esi + 0x409c], ebp
mov dword [esi + 0x40a0], eax
mov esi, dword [esp + 0x30]
add esp, 8
mov ecx, dword [ebx + 0x4098]
mov edx, dword [esp + 0x48]
mov dword [ecx + edx*4], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 0
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
add edi, dword [esp + 0x24]
cmp edi, ebx
mov dword [esp + 0x2c], edi
jb 0x5460f5
lea ecx, [esp + 0x10]
mov dword [esp + 0xbc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebp
mov al, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xb0
ret 8