Function at 0x40b350
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d880
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x20000000
mov edx, 0x4202a05f
push edi
mov dword [esi + 8], eax
mov dword [esi], eax
mov dword [esi + 0xc], edx
mov dword [esi + 4], edx
mov edx, 0xc202a05f
mov dword [esi + 0x18], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], edx
mov eax, dword [ecx + 4]
xor edi, edi
lea edx, [esp + 0x28]
mov dword [esp + 0x28], edi
mov ecx, dword [eax]
push edx
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x2c], edi
call dword [ecx + 0x30]
test eax, eax
jl 0x40b8f5
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x40b8f5
lea edx, [esp + 0x34]
mov dword [esp + 0x34], edi
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x44]
test eax, eax
jl 0x40b8d6
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40b8cc
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40b8c2
mov eax, dword [esp + 0x44]
cmp eax, edi
mov dword [esp + 0x2c], eax
jle 0x40b8c2
mov eax, dword [esp + 0x2c]
push 3
push eax
lea ecx, [esp + 0xb0]
mov dword [esp + 0x20], edi
call sub.MFC42.DLL_COleVariant::COleVariant
mov ebx, dword [eax]
lea esi, [esp + 0x18]
push esi
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov dword [esp + 0xe4], edi
mov esi, esp
mov edx, dword [ecx]
push ecx
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
call dword [edx + 0x24]
lea ecx, [esp + 0xa8]
mov dword [esp + 0xd0], 0xffffffff
test eax, eax
push ecx
setge bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x40b8b1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x34]
cmp word [esp + 0x4c], di
je 0x40b8b1
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], edi
push ecx
mov edx, dword [eax]
push eax
call dword [edx + 0x24]
test eax, eax
jl 0x40b503
mov edx, dword [str.SA_regmark]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, dword [esp + 0x40]
push eax
mov eax, dword [str.SA_regmark]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_wcsncmp]
add esp, 0x10
test eax, eax
je 0x40b8c2
mov edx, dword [esp + 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
mov dword [esp + 0x14], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40b8a7
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push 0x4102f0
mov ecx, dword [eax]
push eax
mov esi, eax
call dword [ecx]
test eax, eax
jl 0x40b53f
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x40b54b
push edi
push edi
push str.get_Shapes_FAILED
call sub.MFC42.DLL_AfxMessageBox_1
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
test eax, eax
jl 0x40b89d
mov eax, dword [esp + 0x38]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x30], esi
jl 0x40b89d
jmp 0x40b582
mov esi, 1
mov eax, dword [esp + 0x30]
push 3
push eax
lea ecx, [esp + 0xc0]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_COleVariant::COleVariant
mov dword [esp + 0xd0], esi
mov ebx, dword [eax]
lea esi, [esp + 0xc]
mov ecx, dword [esp + 0x14]
push esi
sub esp, 0x10
mov edx, dword [ecx]
mov esi, esp
push ecx
mov dword [esi], ebx
mov ebx, dword [eax + 4]
mov dword [esi + 4], ebx
mov ebx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
call dword [edx + 0x24]
lea ecx, [esp + 0xb8]
mov dword [esp + 0xd0], 0xffffffff
test eax, eax
push ecx
setge bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x40b888
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push ecx
push 0x4102e0
mov edx, dword [eax]
push eax
mov esi, eax
call dword [edx]
test eax, eax
jl 0x40b611
mov edx, dword [esi]
push esi
call dword [edx + 8]
jmp 0x40b61d
push edi
push edi
push str.get_Item_FAILED
call sub.MFC42.DLL_AfxMessageBox_1
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x40b649
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x48]
mov dword [esp + 0x48], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x164]
cmp word [esp + 0x48], di
je 0x40b89d
inc dword [esp + 0x24]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x40b78a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x5c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
jl 0x40b78a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x6c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
test eax, eax
jl 0x40b78a
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x74]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
test eax, eax
jl 0x40b78a
fld qword [esp + 0x54]
fld qword [esp + 0x5c]
fsub qword [esp + 0x74]
mov ecx, dword [ebp + 8]
fstp qword [esp + 0x90]
fld qword [esp + 0x6c]
fadd qword [esp + 0x54]
fstp qword [esp + 0x98]
fld qword [esp + 0x5c]
fstp qword [esp + 0xa0]
fcom qword [ecx]
fnstsw ax
test ah, 0x41
jne 0x40b722
fstp st(0)
fld qword [ecx]
fstp qword [ecx]
fld qword [ecx + 8]
fld qword [esp + 0x90]
fcompp
fnstsw ax
test ah, 0x41
jne 0x40b73c
fld qword [ecx + 8]
jmp 0x40b743
fld qword [esp + 0x90]
fstp qword [ecx + 8]
fld qword [ecx + 0x10]
fld qword [esp + 0x98]
fcompp
fnstsw ax
test ah, 1
je 0x40b75e
fld qword [ecx + 0x10]
jmp 0x40b765
fld qword [esp + 0x98]
fstp qword [ecx + 0x10]
fld qword [ecx + 0x18]
fld qword [esp + 0xa0]
fcompp
fnstsw ax
test ah, 1
je 0x40b780
fld qword [ecx + 0x18]
jmp 0x40b787
fld qword [esp + 0xa0]
fstp qword [ecx + 0x18]
test bl, bl
je 0x40b87e
mov eax, dword [esp + 0x24]
mov esi, 1
cmp eax, esi
jne 0x40b87e
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x40]
mov dword [esp + 0x40], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
test eax, eax
jl 0x40b87e
cmp dword [esp + 0x40], esi
jne 0x40b87e
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x7c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x8c]
test eax, eax
jl 0x40b87e
fld qword [esp + 0x7c]
fcomp qword [0x40e270]
fnstsw ax
test ah, 0x40
je 0x40b87e
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
test eax, eax
jl 0x40b87e
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x50]
mov dword [esp + 0x50], edi
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x3c]
test eax, eax
jl 0x40b874
cmp word [esp + 0x50], di
je 0x40b874
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x64]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x5c]
test eax, eax
jl 0x40b874
fld qword [esp + 0x64]
fcomp qword [0x40e270]
fnstsw ax
test ah, 0x40
je 0x40b874
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
inc eax
cmp eax, ecx
mov dword [esp + 0x30], eax
jle 0x40b57d
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x2c]
dec eax
cmp eax, edi
mov dword [esp + 0x2c], eax
jg 0x40b42b
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x34]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esp + 0x13]
test al, al
je 0x40b8f5
mov ecx, dword [esp + 0x24]
mov eax, 1
cmp ecx, eax
je 0x40b8f7
xor eax, eax
mov ecx, dword [esp + 0xc8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8