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

Disassembly:
push 0xffffffffffffffff
push 0x410d1c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
xor eax, eax
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x6c], eax
mov ecx, dword [0x418fc8]
mov dword [esp + 0x118], 1
cmp ecx, eax
mov dword [esp + 0xc], eax
jle 0x40739e
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push ebx
push ebp
push edi
jmp 0x406590
xor eax, eax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x18]
lea eax, [esp + 0xa4]
push ebp
push eax
mov ecx, 0x418fc0
call fcn.00407c90
mov edi, dword [esp + 0x1c]
mov eax, dword [eax]
push edi
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 2
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
setne bl
lea ecx, [esp + 0xa8]
mov byte [esp + 0x124], 3
call fcn.0040fafe
lea ecx, [esp + 0xa4]
mov byte [esp + 0x124], 1
call fcn.0040fafe
test bl, bl
je 0x406cce
lea ecx, [esp + 0xbc]
push ebp
push ecx
mov ecx, 0x418fc0
call fcn.00407c90
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x128], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xc0]
mov byte [esp + 0x124], 7
call fcn.0040fafe
lea ecx, [esp + 0xbc]
mov byte [esp + 0x124], 6
call fcn.0040fafe
mov edx, dword [esp + 0x10]
push edi
push edx
lea ecx, [esp + 0x138]
call sub.MFC42.DLL_CString::Find_2
mov edi, eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xec]
push ebp
mov eax, dword [eax - 8]
push ecx
add eax, edi
mov ecx, 0x418fc0
mov dword [esp + 0x24], eax
call fcn.00407c90
mov ecx, dword [eax + 8]
test ecx, ecx
sete bl
lea ecx, [esp + 0xf0]
mov byte [esp + 0x124], 8
call fcn.0040fafe
lea ecx, [esp + 0xec]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
je 0x4068eb
test edi, edi
je 0x406708
mov ecx, dword [esp + 0x130]
mov al, byte [edi + ecx - 1]
cmp al, 0x41
jl 0x4066d1
cmp al, 0x5a
jle 0x406cbd
cmp al, 0x61
jl 0x4066dd
cmp al, 0x7a
jle 0x406cbd
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
lea edx, [eax + edi]
mov cl, byte [edx + ecx]
cmp cl, 0x41
jl 0x4066f8
cmp cl, 0x5a
jle 0x406cbd
cmp cl, 0x61
jl 0x406735
cmp cl, 0x7a
jle 0x406cbd
jmp 0x406735
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
mov eax, dword [eax - 8]
mov cl, byte [eax + ecx]
cmp cl, 0x41
jl 0x406727
cmp cl, 0x5a
jle 0x406cbd
cmp cl, 0x61
jl 0x406735
cmp cl, 0x7a
jle 0x406cbd
lea ebp, [eax + edi]
push 2
lea edx, [esp + 0x94]
push ebp
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417678
push eax
call esi
add esp, 8
lea ecx, [esp + 0x90]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406776
add ebp, 2
jmp 0x406777
inc ebp
mov eax, dword [esp + 0x130]
mov edi, ebp
cmp ebp, dword [eax - 8]
jge 0x406887
push 1
lea ecx, [esp + 0x50]
push edi
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
mov byte [esp + 0x12c], 9
call esi
add esp, 8
test eax, eax
je 0x40685f
push 1
lea edx, [esp + 0x88]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
call esi
add esp, 8
lea ecx, [esp + 0x84]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x40685f
push 2
lea eax, [esp + 0x48]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x44]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x40685f
push 2
lea ecx, [esp + 0x98]
push edi
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x94]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406861
mov bl, 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
jne 0x406887
mov edx, dword [esp + 0x130]
inc edi
cmp edi, dword [edx - 8]
jl 0x406789
sub edi, ebp
test edi, edi
jle 0x406ca7
push edi
lea eax, [esp + 0x38]
push ebp
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
push edi
push ebp
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0xa
call sub.MFC42.DLL_CString::Delete
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00407440
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x130]
push edx
push ebp
call sub.MFC42.DLL_CString::Insert
mov byte [esp + 0x124], 6
lea ecx, [esp + 0x34]
jmp 0x406ca2
test edi, edi
je 0x406940
mov eax, dword [esp + 0x130]
mov cl, byte [edi + eax - 1]
cmp cl, 0x41
jl 0x406908
cmp cl, 0x5a
jle 0x406cbd
cmp cl, 0x61
jl 0x406916
cmp cl, 0x7a
jle 0x406cbd
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx - 8]
add ecx, edi
mov cl, byte [ecx + eax]
cmp cl, 0x41
jl 0x406930
cmp cl, 0x5a
jle 0x406cbd
cmp cl, 0x61
jl 0x40696d
cmp cl, 0x7a
jle 0x406cbd
jmp 0x40696d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x130]
mov ecx, dword [edx - 8]
mov cl, byte [ecx + eax]
cmp cl, 0x41
jl 0x40695f
cmp cl, 0x5a
jle 0x406cbd
cmp cl, 0x61
jl 0x40696d
cmp cl, 0x7a
jle 0x406cbd
mov ecx, dword [eax - 8]
xor ebp, ebp
cmp edi, ecx
mov dword [esp + 0x20], ebp
jge 0x406b30
push 1
lea eax, [esp + 0x90]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
call esi
add esp, 8
lea ecx, [esp + 0x8c]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406a0b
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xd4]
push ecx
inc ebp
push edx
mov ecx, 0x418fc0
inc edi
call fcn.00407c90
cmp ebp, dword [eax + 8]
sete bl
lea ecx, [esp + 0xd8]
mov byte [esp + 0x124], 0xb
call fcn.0040fafe
lea ecx, [esp + 0xd4]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
jne 0x406b29
jmp 0x406b0f
push 2
lea eax, [esp + 0x58]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x54]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406a91
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x104]
push ecx
push edx
mov ecx, 0x418fc0
inc ebp
add edi, 2
call fcn.00407c90
cmp ebp, dword [eax + 8]
sete bl
lea ecx, [esp + 0x108]
mov byte [esp + 0x124], 0xc
call fcn.0040fafe
lea ecx, [esp + 0x104]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
jne 0x406b29
jmp 0x406b0f
push 1
lea eax, [esp + 0x60]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
mov byte [esp + 0x12c], 0xd
call esi
add esp, 8
test eax, eax
je 0x406af7
push 2
lea ecx, [esp + 0xa0]
push edi
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x9c]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406af9
mov bl, 1
lea ecx, [esp + 0x5c]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
jne 0x406b21
inc edi
mov eax, dword [esp + 0x130]
cmp edi, dword [eax - 8]
jl 0x40697e
jmp 0x406b30
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x406ca7
mov ecx, dword [eax - 8]
mov ebp, edi
cmp edi, ecx
jge 0x406c47
push 1
lea edx, [esp + 0x70]
push ebp
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
mov byte [esp + 0x12c], 0xe
call esi
add esp, 8
test eax, eax
je 0x406c1f
push 1
lea eax, [esp + 0x84]
push ebp
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
call esi
add esp, 8
lea ecx, [esp + 0x80]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x406c1f
push 2
lea ecx, [esp + 0x68]
push ebp
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x64]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x406c1f
push 2
lea edx, [esp + 0x8c]
push ebp
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x88]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406c21
mov bl, 1
lea ecx, [esp + 0x6c]
mov byte [esp + 0x124], 6
call fcn.0040fafe
test bl, bl
jne 0x406c47
mov eax, dword [esp + 0x130]
inc ebp
cmp ebp, dword [eax - 8]
jl 0x406b49
sub ebp, edi
test ebp, ebp
jle 0x406ca7
push ebp
lea ecx, [esp + 0x34]
push edi
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
push ebp
push edi
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0xf
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x30]
push edx
call fcn.00407440
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x130]
push eax
push edi
call sub.MFC42.DLL_CString::Insert
mov byte [esp + 0x124], 6
lea ecx, [esp + 0x30]
call fcn.0040fafe
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 1
call fcn.0040fafe
jmp 0x406594
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 1
call fcn.0040fafe
mov dword [esp + 0x1c], 0
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0xb0]
push ebp
push ecx
mov ecx, 0x418fc0
call fcn.00407c90
mov edi, dword [esp + 0x1c]
mov eax, dword [eax + 4]
push edi
push eax
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0x10
call sub.MFC42.DLL_CString::Find_2
cmp eax, 0xffffffff
setne bl
lea ecx, [esp + 0xb4]
mov byte [esp + 0x124], 0x11
call fcn.0040fafe
lea ecx, [esp + 0xb0]
mov byte [esp + 0x124], 1
call fcn.0040fafe
test bl, bl
je 0x407389
lea edx, [esp + 0xc8]
push ebp
push edx
mov ecx, 0x418fc0
call fcn.00407c90
add eax, 4
lea ecx, [esp + 0x14]
push eax
mov byte [esp + 0x128], 0x12
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0xcc]
mov byte [esp + 0x124], 0x15
call fcn.0040fafe
lea ecx, [esp + 0xc8]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x138]
call sub.MFC42.DLL_CString::Find_2
mov ecx, dword [esp + 0x14]
mov edi, eax
lea edx, [esp + 0xe0]
push ebp
mov eax, dword [ecx - 8]
push edx
add eax, edi
mov ecx, 0x418fc0
mov dword [esp + 0x24], eax
call fcn.00407c90
mov ecx, dword [eax + 8]
test ecx, ecx
sete bl
lea ecx, [esp + 0xe4]
mov byte [esp + 0x124], 0x16
call fcn.0040fafe
lea ecx, [esp + 0xe0]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
je 0x406ff8
cmp edi, 1
jle 0x406e2a
mov ecx, dword [esp + 0x130]
mov al, byte [edi + ecx - 2]
test al, al
jl 0x407378
mov eax, dword [esp + 0x14]
mov eax, dword [eax - 8]
lea edx, [eax + edi]
cmp byte [edx + ecx], 0
jl 0x407378
jmp 0x406e45
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x130]
mov eax, dword [eax - 8]
lea ecx, [eax + edi]
cmp byte [ecx + edx], 0
jl 0x407378
lea ebp, [eax + edi]
push 2
lea eax, [esp + 0x3c]
push ebp
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417678
push eax
call esi
add esp, 8
lea ecx, [esp + 0x38]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406e80
add ebp, 2
jmp 0x406e81
inc ebp
mov ecx, dword [esp + 0x130]
mov edi, ebp
cmp ebp, dword [ecx - 8]
jge 0x406f94
push 1
lea edx, [esp + 0xa4]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
mov byte [esp + 0x12c], 0x17
call esi
add esp, 8
test eax, eax
je 0x406f69
push 1
lea eax, [esp + 0x78]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
call esi
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x406f69
push 2
lea ecx, [esp + 0x9c]
push edi
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x98]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x406f69
push 2
lea edx, [esp + 0x80]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x7c]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x406f6b
mov bl, 1
lea ecx, [esp + 0xa0]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
jne 0x406f94
mov eax, dword [esp + 0x130]
inc edi
cmp edi, dword [eax - 8]
jl 0x406e93
sub edi, ebp
test edi, edi
jle 0x407362
push edi
lea ecx, [esp + 0x2c]
push ebp
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
push edi
push ebp
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0x18
call sub.MFC42.DLL_CString::Delete
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x28]
push edx
call fcn.00407440
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x130]
push eax
push ebp
call sub.MFC42.DLL_CString::Insert
mov byte [esp + 0x124], 0x14
lea ecx, [esp + 0x28]
jmp 0x40735d
cmp edi, 1
jle 0x407025
mov eax, dword [esp + 0x130]
mov cl, byte [edi + eax - 2]
test cl, cl
jl 0x407378
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx - 8]
add ecx, edi
cmp byte [ecx + eax], 0
jl 0x407378
jmp 0x407040
mov edx, dword [esp + 0x14]
mov eax, dword [edx - 8]
lea ecx, [eax + edi]
mov eax, dword [esp + 0x130]
cmp byte [ecx + eax], 0
jl 0x407378
mov ecx, dword [eax - 8]
xor ebp, ebp
cmp edi, ecx
mov dword [esp + 0x20], ebp
jge 0x4071f7
push 1
lea edx, [esp + 0x40]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
call esi
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x4070d8
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0xf8]
push eax
push ecx
inc ebp
mov ecx, 0x418fc0
inc edi
call fcn.00407c90
cmp ebp, dword [eax + 8]
sete bl
lea ecx, [esp + 0xfc]
mov byte [esp + 0x124], 0x19
call fcn.0040fafe
lea ecx, [esp + 0xf8]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
jne 0x4071f0
jmp 0x4071d6
push 2
lea edx, [esp + 0x44]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x40]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x40715e
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x110]
push eax
push ecx
mov ecx, 0x418fc0
inc ebp
add edi, 2
call fcn.00407c90
cmp ebp, dword [eax + 8]
sete bl
lea ecx, [esp + 0x114]
mov byte [esp + 0x124], 0x1a
call fcn.0040fafe
lea ecx, [esp + 0x110]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
jne 0x4071f0
jmp 0x4071d6
push 1
lea edx, [esp + 0x54]
push edi
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
mov byte [esp + 0x12c], 0x1b
call esi
add esp, 8
test eax, eax
je 0x4071be
push 2
lea eax, [esp + 0x4c]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x48]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x4071c0
mov bl, 1
lea ecx, [esp + 0x50]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
jne 0x4071e8
inc edi
mov eax, dword [esp + 0x130]
cmp edi, dword [eax - 8]
jl 0x407051
jmp 0x4071f7
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jne 0x407362
mov ecx, dword [eax - 8]
mov ebp, edi
cmp edi, ecx
jge 0x407302
push 1
lea ecx, [esp + 0x74]
push ebp
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417674
push eax
mov byte [esp + 0x12c], 0x1c
call esi
add esp, 8
test eax, eax
je 0x4072da
push 1
lea edx, [esp + 0x5c]
push ebp
push edx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417670
push eax
call esi
add esp, 8
lea ecx, [esp + 0x58]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x4072da
push 2
lea eax, [esp + 0x64]
push ebp
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x41766c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x60]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
jne 0x4072da
push 2
lea ecx, [esp + 0x6c]
push ebp
push ecx
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
mov eax, dword [eax]
push 0x417668
push eax
call esi
add esp, 8
lea ecx, [esp + 0x68]
test eax, eax
sete bl
call fcn.0040fafe
test bl, bl
je 0x4072dc
mov bl, 1
lea ecx, [esp + 0x70]
mov byte [esp + 0x124], 0x14
call fcn.0040fafe
test bl, bl
jne 0x407302
mov edx, dword [esp + 0x130]
inc ebp
cmp ebp, dword [edx - 8]
jl 0x407210
sub ebp, edi
test ebp, ebp
jle 0x407362
push ebp
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::Mid
push ebp
push edi
lea ecx, [esp + 0x138]
mov byte [esp + 0x12c], 0x1d
call sub.MFC42.DLL_CString::Delete
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00407440
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x130]
push edx
push edi
call sub.MFC42.DLL_CString::Insert
mov byte [esp + 0x124], 0x14
lea ecx, [esp + 0x2c]
call fcn.0040fafe
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 1
call fcn.0040fafe
jmp 0x406cd6
lea ecx, [esp + 0x14]
mov byte [esp + 0x124], 1
call fcn.0040fafe
mov eax, dword [0x418fc8]
inc ebp
cmp ebp, eax
mov dword [esp + 0x18], ebp
jl 0x40658e
pop edi
pop ebp
pop ebx
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x124]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x6c], 1
lea ecx, [esp + 0x124]
mov byte [esp + 0x118], 0
call fcn.0040fafe
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x118
ret 8