Function at 0x4b9e90
Capabilities:
Access peb ldr_data
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x56d3de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push ebx
push esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 8]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov eax, dword [edi]
mov dword [esp + 0x30], ecx
xor bl, bl
mov ecx, edi
mov dword [esp + 0x34], edx
mov byte [esp + 0x17], bl
call dword [eax + 0x68]
test eax, eax
jne 0x4b9ef3
mov cl, byte [ebp + 0x18]
test cl, cl
je 0x4b9ef3
mov bl, 1
mov byte [esp + 0x17], bl
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x4bae08
test eax, eax
jne 0x4b9f0a
test bl, bl
je 0x4bae08
mov al, byte [edi + 0x49]
test al, al
jne 0x4b9f62
mov al, byte [edi + 0x38]
test al, al
je 0x4b9f32
lea ecx, [esp + 0x28]
push ecx
lea edx, [edi + 0x58]
push edx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x4b9f62
mov al, byte [edi + 0x38]
test al, al
jne 0x4b9f5e
mov eax, dword [edi + 0x60]
mov ebx, dword [edi + 0x58]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
sub eax, ebx
sub ecx, esi
cmp eax, ecx
jne 0x4b9f62
mov edx, dword [edi + 0x64]
mov ebx, dword [edi + 0x5c]
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
sub edx, ebx
sub eax, esi
cmp edx, eax
jne 0x4b9f62
xor eax, eax
jmp 0x4b9f67
mov eax, 1
test al, al
mov ebx, dword [ebp + 0x1c]
mov byte [edi + 0x49], al
jne 0x4b9f81
test ebx, ebx
je 0x4b9f81
mov al, byte [ebx + 0x28]
cmp al, byte [edi + 0x48]
je 0x4b9f81
mov byte [edi + 0x49], 1
mov al, byte [edi + 0x49]
test al, al
jne 0x4ba024
lea ecx, [esp + 0x28]
push ecx
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4ba019
mov eax, dword [esi]
mov edx, dword [esp + 0x28]
mov ecx, dword [edi + 0x5c]
sub edx, eax
mov eax, dword [esp + 0x2c]
sub eax, ecx
mov dword [esp + 0x98], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x40], edx
je 0x4b9ffe
fild dword [esp + 0x40]
fild dword [esp + 0x98]
nop
mov eax, dword [ecx + 8]
fld st(1)
fadd qword [eax + 0x30]
fstp qword [eax + 0x30]
fld st(0)
fadd qword [eax + 0x38]
fstp qword [eax + 0x38]
fld st(1)
fadd qword [eax + 0x40]
fstp qword [eax + 0x40]
fld st(0)
fadd qword [eax + 0x48]
fstp qword [eax + 0x48]
mov ecx, dword [ecx]
cmp ecx, dword [edi + 0x50]
jne 0x4b9fd0
fstp st(0)
fstp st(0)
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi], ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov al, byte [edi + 0x49]
test al, al
je 0x4bac75
push 0
call dword [sym.imp.MSVCR71.dll_time]
lea esi, [edi + 0x4c]
add esp, 4
mov dword [esp + 0xcc], eax
mov byte [edi + 0x49], 0
mov dword [esp + 0xc8], esi
call fcn.004bb3b0
test ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [edi + 0x58]
mov dword [edx], eax
mov eax, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
je 0x4ba0bb
mov al, byte [ebx + 0x28]
test al, al
je 0x4ba0bb
push 0x108
call sub.MFC71.DLL_operator_new_1
mov esi, eax
add esp, 4
mov dword [esp + 0x68], esi
test esi, esi
mov dword [esp + 0x11c], 0
je 0x4ba0a2
push esi
call fcn.00500f20
mov dword [esi], vtable.CBendTextSurface.0
jmp 0x4ba0a4
xor esi, esi
mov ebx, esi
mov dword [esp + 0x11c], 0xffffffff
mov dword [esp + 0x18], ebx
mov byte [edi + 0x48], 1
jmp 0x4ba0fa
push 0x108
call sub.MFC71.DLL_operator_new_1
add esp, 4
mov dword [esp + 0x68], eax
test eax, eax
mov dword [esp + 0x11c], 1
je 0x4ba0e3
push eax
call fcn.00500f20
jmp 0x4ba0e5
xor eax, eax
mov dword [esp + 0x11c], 0xffffffff
mov dword [esp + 0x18], eax
mov byte [edi + 0x48], 0
mov ebx, eax
fild dword [esp + 0x28]
lea edx, [ebx + 8]
mov ecx, 8
lea esi, [esp + 0x78]
fstp qword [esp + 0x78]
mov edi, edx
fild dword [esp + 0x2c]
mov dword [esp + 0x3c], edx
fstp qword [esp + 0x80]
fild dword [esp + 0x30]
fstp qword [esp + 0x88]
fild dword [esp + 0x34]
fstp qword [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
fld qword [edx]
fcomp qword [edx + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4ba14d
fld qword [edx]
fld qword [edx + 0x10]
fstp qword [edx]
fstp qword [edx + 0x10]
fld qword [edx + 8]
fcomp qword [edx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4ba166
fld qword [edx + 8]
fld qword [edx + 0x18]
fstp qword [edx + 8]
fstp qword [edx + 0x18]
mov edx, dword [esp + 0x3c]
push 1
push 0
mov eax, ebx
call fcn.00501340
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
push 0xfffffffffffffffb
mov dword [esp + 0xc0], eax
mov dword [esp + 0xbc], edx
mov edx, dword [esp + 0x38]
push 0xfffffffffffffffb
lea eax, [esp + 0xc0]
push eax
mov dword [esp + 0xcc], ecx
mov dword [esp + 0xd0], edx
call dword [sym.imp.USER32.dll_InflateRect]
fild dword [esp + 0xb8]
push 1
push 0
fstp qword [esp + 0x80]
lea edx, [esp + 0x80]
fild dword [esp + 0xc4]
mov eax, ebx
fstp qword [esp + 0x88]
fild dword [esp + 0xc8]
fstp qword [esp + 0x90]
fild dword [esp + 0xcc]
fstp qword [esp + 0x98]
call fcn.00501340
mov eax, dword [ebp + 0x14]
test eax, eax
mov esi, dword [ebp + 8]
je 0x4ba224
mov cl, byte [esi + 0x38]
test cl, cl
je 0x4ba224
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x4ba21c
mov dl, byte [ecx + 0x28]
test dl, dl
jne 0x4ba224
push eax
mov edi, ebx
call fcn.00501440
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx + 0xc]
test edi, edi
sete al
test al, al
je 0x4ba2b1
mov ecx, dword [0x68c9b4]
mov edi, dword [ecx + 0x44]
test edi, edi
jne 0x4ba29c
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ba259
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::BeginWaitCursor
mov dword [esp + 0x11c], 2
call fcn.004695a0
mov edx, dword [0x68c9b4]
mov edi, eax
mov dword [edx + 0x44], edi
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ba298
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::EndWaitCursor
test edi, edi
je 0x4ba2a8
push edi
call sub.MFC71.DLL_CDC::FromHandle
mov dword [esp + 0x64], eax
jmp 0x4ba2b5
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
jmp 0x4ba2b5
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x64]
mov dword [ebx + 0x28], ecx
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x44]
fld qword [edx + 0x18]
sub eax, edi
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov byte [esp + 0x15], 0
mov byte [esp + 0x16], 1
fmulp st(1)
fmul qword [0x594db0]
fstp qword [ebx + 0x98]
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx + 0x34]
fld qword [0x594cf8]
fstp qword [esp + 0xb0]
mov dword [ebx + 0x80], eax
fld qword [0x594d18]
mov edx, dword [esi + 0x28]
mov eax, dword [esi]
fstp qword [esp + 0xa8]
fld qword [0x594d18]
mov edi, dword [esi + 0x30]
mov ecx, esi
fstp qword [esp + 0x50]
mov dword [esp + 0x5c], edx
call dword [eax + 0x68]
dec eax
cmp edi, eax
jae 0x4ba337
mov eax, dword [esi + 0x30]
jmp 0x4ba33f
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x68]
dec eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x44]
mov al, byte [eax + 0x2c]
test al, al
jne 0x4ba359
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x24], eax
jmp 0x4ba371
mov al, byte [esp + 0x17]
test al, al
je 0x4ba371
mov dword [esp + 0x5c], 0
mov dword [esp + 0x24], 4
mov esi, dword [esp + 0x3c]
mov ecx, 8
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4ba39c
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::BeginWaitCursor
mov dword [esp + 0x11c], 3
mov al, byte [esp + 0x15]
test al, al
je 0x4ba3cb
mov al, byte [esp + 0x16]
test al, al
je 0x4bac3b
fld qword [esp + 0xb0]
mov byte [esp + 0x16], 0
fstp qword [esp + 0x50]
mov edi, ebx
call fcn.00501a60
test al, al
je 0x4bada0
mov ecx, dword [ebp + 8]
fld qword [esp + 0x50]
mov edx, dword [ecx + 0x44]
sub esp, 8
fstp qword [esp]
push edx
call fcn.00506380
mov esi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 8]
mov ecx, 8
lea edi, [esp + 0x78]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x44]
mov ecx, dword [ecx + 0x20]
cmp ecx, 1
jbe 0x4ba69a
xor eax, eax
test ecx, ecx
jbe 0x4ba441
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x44]
fld qword [0x594cf8]
mov ecx, dword [ecx + 8]
mov ecx, dword [ecx + eax*4]
fstp qword [ecx + 0x18]
mov ecx, dword [edx + 0x44]
mov esi, dword [ecx + 0x20]
inc eax
cmp eax, esi
jb 0x4ba424
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
ja 0x4ba4c0
mov edx, dword [ebp + 8]
add edx, 0x14
mov dword [esp + 0x40], edx
lea esp, [esp]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x44]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
mov dword [eax + 0x30], ecx
mov eax, dword [edi + 0x44]
push edx
push eax
call fcn.00506330
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + 0x20]
xor esi, esi
test eax, eax
jbe 0x4ba4af
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x44]
mov eax, dword [eax + 8]
mov eax, dword [eax + esi*4]
mov ebx, dword [esp + 0x64]
push eax
call fcn.0050c4a0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx + 0x20]
inc esi
cmp esi, eax
jb 0x4ba487
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jbe 0x4ba460
mov esi, dword [ebp + 8]
fld qword [0x594cf8]
mov ecx, dword [esi + 0x44]
mov edx, dword [ecx + 0x20]
xor eax, eax
test edx, edx
jbe 0x4ba4eb
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0x20]
jmp 0x4ba4e0
mov ecx, dword [edx + eax*4]
fadd qword [ecx + 0x18]
inc eax
cmp eax, esi
jb 0x4ba4e0
inc eax
fst qword [esp + 0x98]
test eax, eax
fld qword [ebx + 0x98]
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
jge 0x4ba50b
fadd qword [0x594e50]
fmul st(1)
lea edi, [esp + 0x80]
fadd st(2)
fstp qword [esp + 0x68]
fstp st(0)
fstp st(0)
call fcn.00501810
mov esi, dword [esp + 0x18]
lea edi, [esp + 0x90]
mov ebx, esi
call fcn.00501880
fld qword [esp + 0x90]
fadd qword [esp + 0x80]
sub esp, 8
lea ebx, [esp + 0x80]
mov edi, esi
fmul qword [0x594dc8]
fstp qword [esp]
call fcn.005018f0
fld qword [esp + 0x90]
sub esp, 8
fadd qword [esp + 0x88]
lea edi, [esp + 0x90]
mov ebx, esi
fmul qword [0x594dc8]
fstp qword [esp]
call fcn.005019b0
fld qword [esp + 0x88]
fsub qword [esp + 0x78]
fmul qword [0x594f78]
fstp qword [esp + 0x40]
fld qword [esp + 0x68]
fadd st(0), st(0)
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jp 0x4ba696
fld qword [esp + 0x68]
fcomp qword [0x594cf8]
fnstsw ax
test ah, 0x41
jne 0x4ba696
fld qword [esp + 0x40]
fdiv qword [esp + 0x68]
call fcn.00549400
dec eax
mov dword [esp + 0x38], eax
je 0x4ba696
fld qword [esp + 0x98]
sub esp, 0x28
mov edi, esp
fstp qword [esp + 0x20]
mov ecx, 8
lea esi, [esp + 0xa0]
mov edx, ebx
rep movsd dword es:[edi], dword [esi]
push edx
xor ecx, ecx
call fcn.004b8f60
test al, al
jne 0x4ba696
mov esi, ebx
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
mov dword [esp + 0x38], 0
je 0x4ba629
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx + 4]
cmp eax, ecx
je 0x4ba652
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esi + 0x34]
add esp, 4
dec eax
mov dword [esi + 0x34], eax
mov edx, dword [esp + 0x3c]
mov ecx, 8
lea esi, [esp + 0x78]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
fld qword [edx]
fcomp qword [edx + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4ba679
fld qword [edx]
fld qword [edx + 0x10]
fstp qword [edx]
fstp qword [edx + 0x10]
fld qword [edx + 8]
fcomp qword [edx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4ba696
mov eax, dword [esp + 0x3c]
fld qword [eax + 8]
fld qword [eax + 0x18]
fstp qword [eax + 8]
fstp qword [eax + 0x18]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x24]
mov esi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
jbe 0x4ba700
push 0
push ebx
call fcn.00502da0
fld qword [esp + 0x50]
fstp qword [esp + 0xb0]
fld qword [esp + 0xa8]
fld qword [esp + 0x50]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4bab4d
mov eax, dword [ebx + 0xac]
test eax, eax
je 0x4bada0
fld qword [esp + 0xa8]
fadd st(0), st(0)
fst qword [esp + 0xa8]
jmp 0x4bab5e
mov esi, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [esi + 0x44]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x30], ecx
mov edx, dword [esi + 0x44]
lea eax, [esi + 0x14]
push eax
push edx
call fcn.00506330
mov edx, dword [esi + 0x44]
cmp dword [edx + 0x20], 1
jbe 0x4ba9d5
call fcn.00506580
mov edi, eax
test edi, edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x20], 0
jbe 0x4bab03
nop
fld qword [0x594cf8]
lea esi, [ebx + 0xb0]
fstp qword [ebx + 0x50]
mov byte [ebx + 0x78], 1
fld qword [0x594cf8]
fstp qword [ebx + 0x48]
call fcn.004bb3b0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [edx + 0x20]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x40], ecx
jbe 0x4ba918
jmp 0x4ba780
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax + 8]
mov edi, dword [eax + ecx*4]
mov ecx, dword [edi + 0x14]
mov dword [ebx + 0x7c], ecx
fld qword [edi + 0x18]
lea esi, [ebx + 0xbc]
fstp qword [esp + 0xa0]
mov dword [esp + 0x98], edi
call fcn.004bb3b0
mov al, byte [ebx + 0x78]
test al, al
je 0x4ba7d3
fld qword [0x594cf8]
fld qword [ebx + 0x48]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4ba7d3
fld qword [ebx + 0x98]
fadd qword [ebx + 0x48]
fstp qword [ebx + 0x48]
fld qword [esp + 0xa0]
mov eax, dword [esp + 0x20]
test eax, eax
fstp qword [ebx + 0x90]
fld qword [0x594cf8]
mov byte [ebx + 0x79], 1
fstp qword [ebx + 0x60]
mov dword [esp + 0x10], eax
fld qword [0x594cf8]
fstp qword [ebx + 0x58]
je 0x4ba82e
mov edx, dword [edi + 0xc]
mov eax, dword [edx]
xor esi, esi
cmp eax, edx
je 0x4ba82c
lea ecx, [ecx]
mov ecx, dword [eax + 8]
cmp byte [ecx + 0x50], 0
je 0x4ba81d
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4ba82c
mov eax, dword [eax]
inc esi
cmp eax, edx
jne 0x4ba810
mov eax, esi
cmp eax, dword [edi + 0x10]
mov esi, eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0x10], esi
jae 0x4ba8eb
jmp 0x4ba851
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x98]
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx]
xor edx, edx
cmp eax, ecx
je 0x4ba86f
lea esp, [esp]
cmp edx, esi
je 0x4ba939
mov eax, dword [eax]
inc edx
cmp eax, ecx
jne 0x4ba860
xor edi, edi
mov edx, dword [esp + 0xa0]
cmp dword [esp + 0x10], edx
je 0x4ba885
mov al, byte [edi + 0x50]
test al, al
jne 0x4ba8eb
push 1
push edi
lea esi, [esp + 0x68]
call fcn.0050d320
mov byte [esp + 0x11c], 4
mov eax, dword [esp + 0x60]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4ba8be
mov eax, dword [edi + 0x44]
push 0
push eax
add edi, 0x68
push edi
push ebx
mov ecx, esi
call fcn.00502110
test al, al
je 0x4bab1d
lea ecx, [esp + 0x60]
mov byte [esp + 0x11c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x98]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x4ba846
mov esi, ebx
call fcn.00501e10
test al, al
je 0x4bab35
mov edx, dword [ebp + 8]
mov ecx, dword [esp + 0x40]
mov eax, dword [edx + 0x44]
mov edx, dword [eax + 0x20]
inc ecx
cmp ecx, edx
mov dword [esp + 0x40], ecx
jb 0x4ba780
mov edi, dword [esp + 0x68]
mov ecx, ebx
call fcn.00501b10
test al, al
je 0x4ba941
mov eax, dword [esp + 0x20]
inc eax
cmp eax, edi
mov dword [esp + 0x20], eax
jb 0x4ba740
jmp 0x4bab03
mov edi, dword [eax + 8]
jmp 0x4ba871
mov ecx, dword [esp + 0x74]
cmp ecx, dword [esp + 0x38]
jae 0x4bab35
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bab35
mov edx, dword [ebx + 0x30]
mov eax, dword [edx + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4ba96e
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 4]
cmp eax, ecx
je 0x4ba997
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebx + 0x34]
add esp, 4
dec eax
mov dword [ebx + 0x34], eax
mov edx, dword [esp + 0x74]
fld qword [0x594fc0]
mov eax, dword [esp + 0x38]
sub esp, 0x28
mov edi, esp
fstp qword [esp + 0x20]
inc edx
mov ecx, 8
lea esi, [esp + 0xa0]
rep movsd dword es:[edi], dword [esi]
push ebx
mov ecx, edx
mov dword [esp + 0xa0], edx
call fcn.004b8f60
dec dword [esp + 0x1c]
jmp 0x4bab03
mov edx, dword [edx + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], esi
jbe 0x4baabb
jmp 0x4baa00
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
lea esp, [esp]
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
xor edx, edx
cmp eax, ecx
je 0x4baa1f
jmp 0x4baa10
cmp edx, esi
je 0x4baada
mov eax, dword [eax]
inc edx
cmp eax, ecx
jne 0x4baa10
xor edi, edi
push 0
push edi
lea esi, [esp + 0x54]
call fcn.0050d320
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x11c], 5
mov eax, dword [eax + 0x10]
dec eax
cmp ecx, eax
je 0x4baa6a
mov eax, dword [edi + 4]
cmp eax, 4
je 0x4baa52
cmp eax, 8
jne 0x4baa6a
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [ebx + 0x88]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_5]
mov byte [ebx + 0x84], 1
mov edx, dword [esp + 0x4c]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4baa91
mov eax, dword [edi + 0x44]
push 0
push eax
add edi, 0x68
push edi
push ebx
lea ecx, [esp + 0x5c]
call fcn.00502110
test al, al
je 0x4bab23
lea ecx, [esp + 0x4c]
mov byte [esp + 0x11c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x10]
inc eax
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x4ba9f1
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x1c], edx
je 0x4bab03
mov al, byte [ebx + 0x79]
test al, al
je 0x4baae2
fld qword [ebx + 0x98]
fadd qword [ebx + 0x58]
fstp qword [ebx + 0x58]
jmp 0x4bab03
mov edi, dword [eax + 8]
jmp 0x4baa21
mov al, byte [ebx + 0x78]
test al, al
je 0x4baaf7
fld qword [ebx + 0x98]
fadd qword [ebx + 0x48]
fstp qword [ebx + 0x48]
jmp 0x4bab03
fld qword [ebx + 0x38]
fadd qword [ebx + 0x98]
fstp qword [ebx + 0x38]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jbe 0x4ba6f9
jmp 0x4ba6ab
lea ecx, [esp + 0x60]
jmp 0x4bab27
lea ecx, [esp + 0x4c]
mov byte [esp + 0x11c], 3
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
fld qword [esp + 0x50]
fstp qword [esp + 0xa8]
fld qword [esp + 0x50]
fadd qword [esp + 0xb0]
jmp 0x4bab58
fld qword [esp + 0x50]
fadd qword [esp + 0xa8]
fmul qword [0x594dc8]
mov eax, dword [esp + 0x38]
fstp qword [esp + 0x50]
test eax, eax
jbe 0x4babe9
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x4bab7d
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx + 4]
cmp eax, ecx
je 0x4baba6
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
push eax
mov dword [ecx + 4], edx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [ebx + 0x34]
add esp, 4
dec eax
mov dword [ebx + 0x34], eax
mov edx, dword [esp + 0x3c]
mov ecx, 8
lea esi, [esp + 0xd0]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
fld qword [edx]
fcomp qword [edx + 0x10]
fnstsw ax
test ah, 0x41
jne 0x4babd0
fld qword [edx]
fld qword [edx + 0x10]
fstp qword [edx]
fstp qword [edx + 0x10]
fld qword [edx + 8]
fcomp qword [edx + 0x18]
fnstsw ax
test ah, 0x41
jne 0x4babe9
fld qword [edx + 8]
fld qword [edx + 0x18]
fstp qword [edx + 8]
fstp qword [edx + 0x18]
fld qword [esp + 0x50]
fsub qword [esp + 0xb0]
fcom qword [0x594e20]
fnstsw ax
test ah, 5
jnp 0x4bac2f
fcomp qword [0x594e28]
fnstsw ax
test ah, 5
jp 0x4bac25
push 0
call dword [sym.imp.MSVCR71.dll_time]
sub eax, dword [esp + 0xd0]
add esp, 4
cmp eax, 0xa
jg 0x4bac31
mov byte [esp + 0x15], 0
jmp 0x4ba3a7
fstp st(0)
mov byte [esp + 0x15], 1
jmp 0x4ba3a7
mov eax, dword [esp + 0xc8]
push eax
push ebx
call fcn.00501760
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bac75
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::EndWaitCursor
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
push ecx
call fcn.00506450
mov ecx, dword [ebp + 0xc]
push 1
call sub.MFC71.DLL_CDC::SetBkMode
fld qword [0x594cf8]
mov eax, dword [ebp + 0x1c]
fstp qword [esp + 0xd0]
test eax, eax
fld qword [0x594cf8]
fstp qword [esp + 0xd8]
fld qword [0x594cf8]
fstp qword [esp + 0xe0]
fld qword [0x594cf8]
fstp qword [esp + 0xe8]
fld qword [0x594cf8]
fstp qword [esp + 0xf0]
fld qword [0x594cf8]
fstp qword [esp + 0xf8]
fld qword [0x594cd8]
fstp qword [esp + 0x108]
je 0x4baddb
fild dword [eax + 0x14]
mov dl, byte [eax + 0x29]
fild dword [eax + 0x10]
mov ecx, 8
lea esi, [esp + 0x78]
lea edi, [esp + 0xe0]
fstp qword [esp + 0xd0]
fstp qword [esp + 0xd8]
fild dword [eax + 0x18]
fstp qword [esp + 0x78]
fild dword [eax + 0x1c]
fstp qword [esp + 0x80]
fild dword [eax + 0x20]
fstp qword [esp + 0x88]
fild dword [eax + 0x24]
fstp qword [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x50]
mov ebx, dword [eax]
cmp ebx, eax
mov byte [esp + 0x100], dl
mov byte [esp + 0x101], 0
je 0x4badde
mov edi, edi
mov eax, dword [ebx + 8]
push 0x5c9f28
push eax
call sub.MSVCR71.dll___RTtypeid
add esp, 4
mov ecx, eax
call dword [sym.imp.MSVCR71.dll_public:_int___thiscall_type_info::operator_class_type_info_const__const]
test eax, eax
je 0x4bad97
mov edi, dword [ebx + 8]
add edi, 0x90
mov ecx, 0x10
lea esi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ebx, dword [ebx]
cmp ebx, dword [edi + 0x50]
jne 0x4bad60
jmp 0x4badde
mov dword [esp + 0x11c], 0xffffffff
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4bae08
call sub.MFC71.DLL_AfxGetModuleState
mov ecx, dword [eax + 4]
call sub.MFC71.DLL_CCmdTarget::EndWaitCursor
mov ecx, dword [esp + 0x114]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x50]
mov esi, dword [eax]
cmp esi, eax
je 0x4badff
mov ebx, dword [ebp + 0xc]
lea ebx, [ebx]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
push ebx
call dword [edx]
mov esi, dword [esi]
cmp esi, dword [edi + 0x50]
jne 0x4badf0
mov eax, dword [edi + 0x44]
push eax
call fcn.00506530
mov ecx, dword [esp + 0x114]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18