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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4591b9
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x46d0a0]
xor eax, esp
mov dword [esp + 0x1f8], eax
push ebx
push esi
push edi
mov eax, dword [0x46d0a0]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
mov eax, 0x46099c
lea esi, [esp + 0xe8]
mov ebx, ecx
call fcn.0040fb10
cmp dword [eax + 0x14], 0x10
jb 0x45133f
mov eax, dword [eax]
push eax
call fcn.00425f0a
pop ecx
mov dword [esp + 0x38], eax
and dword [esp + 0x218], 0
push 1
xor edi, edi
lea esi, [esp + 0xec]
call fcn.00404d2d
mov eax, 0x46099c
lea esi, [esp + 0x78]
call fcn.0040fb10
mov edi, eax
mov eax, 0x460934
lea esi, [esp + 0xb0]
mov byte [esp + 0x218], 1
call fcn.0040fb10
mov byte [esp + 0x218], 2
cmp dword [edi + 0x14], 0x10
jb 0x45139b
mov edi, dword [edi]
cmp dword [eax + 0x14], 0x10
jb 0x4513a3
mov eax, dword [eax]
push edi
push eax
push 0
call fcn.0044c5ed
add esp, 0xc
push 1
xor edi, edi
lea esi, [esp + 0xb4]
call fcn.00404d2d
push 1
lea esi, [esp + 0x7c]
mov byte [esp + 0x21c], 0
call fcn.00404d2d
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x4513e2
push eax
call fcn.00417cf0
lea edi, [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call fcn.004043e0
mov esi, eax
mov eax, dword [esi + 0x14]
xor ecx, ecx
test eax, eax
jle 0x45140b
mov edx, dword [esi + 0x10]
cmp dword [edx], edi
je 0x45140e
inc ecx
add edx, 4
cmp ecx, eax
jl 0x4513ff
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x451442
test ecx, ecx
js 0x451442
cmp ecx, eax
jge 0x451442
lea edx, [eax - 1]
cmp ecx, edx
je 0x45143f
mov edx, dword [esi + 0x10]
sub eax, ecx
shl eax, 2
lea ecx, [edx + ecx*4]
lea edx, [eax - 4]
push edx
lea edx, [ecx + 4]
push edx
push eax
push ecx
call fcn.0040400f
add esp, 0x10
dec dword [esi + 0x14]
mov eax, dword [ebx + 0x54]
sub eax, dword [ebx + 0x50]
sar eax, 2
test eax, eax
jne 0x451460
mov eax, dword [ebx + 0x64]
sub eax, dword [ebx + 0x60]
sar eax, 2
test eax, eax
je 0x45160f
mov eax, 0x4609ac
lea esi, [esp + 0xcc]
call fcn.0040fb10
mov byte [esp + 0x218], 3
cmp dword [eax + 0x14], 0x10
jb 0x451481
mov eax, dword [eax]
mov ecx, dword [ebx + 0x64]
sub ecx, dword [ebx + 0x60]
sar ecx, 2
push ecx
mov ecx, dword [ebx + 0x54]
sub ecx, dword [ebx + 0x50]
sar ecx, 2
push ecx
push eax
push 0
call fcn.0044c5ed
add esp, 0x10
push 1
xor edi, edi
lea esi, [esp + 0xd0]
mov byte [esp + 0x21c], 0
call fcn.00404d2d
lea eax, [esp + 0x28]
push eax
lea ecx, [ebx + 0x50]
call fcn.00402b62
mov byte [esp + 0x218], 4
mov eax, dword [ebx + 0x64]
mov edi, dword [ebx + 0x60]
mov dword [esp + 0x24], eax
cmp edi, eax
je 0x4514ef
mov eax, edi
lea esi, [esp + 0x28]
call fcn.00402bef
add edi, 4
cmp edi, dword [esp + 0x24]
jne 0x4514db
fld qword [0x466600]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fsub qword [0x4665f8]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fcomp qword [0x4665f0]
fnstsw ax
test ah, 0x41
jne 0x451528
fld qword [esp + 0x14]
fsub qword [0x4665e8]
fstp qword [esp + 0x14]
jmp 0x451550
fld qword [esp + 0x1c]
call fcn.00426fd0
xor eax, 0x2aaa
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x7d34
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp qword [esp + 0x1c]
mov esi, dword [esp + 0x28]
jmp 0x451561
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
add esi, 4
cmp esi, dword [esp + 0x2c]
jne 0x451556
fldz
fstp qword [esp + 0x14]
mov dword [esp + 0x10], 0x5f17
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*2]
mov dword [esp + 0x1c], eax
push ecx
push ecx
fild dword [esp + 0x24]
fsub qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x464f30]
fstp qword [esp]
call fcn.004254b0
mov esi, dword [esp + 0x30]
fstp qword [esp + 0x1c]
pop ecx
pop ecx
jmp 0x4515c2
mov eax, dword [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
add esi, 4
cmp esi, dword [esp + 0x2c]
jne 0x4515b7
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x60]
cmp eax, ecx
je 0x4515fe
push ecx
call fcn.0040383e
mov esi, dword [ebx + 0x64]
mov edi, eax
pop ecx
mov dword [esp + 0x1c], edi
jmp 0x4515f3
mov eax, dword [edi]
test eax, eax
je 0x4515f0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
add edi, 4
cmp edi, esi
jne 0x4515e4
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x64], eax
lea esi, [esp + 0x28]
mov byte [esp + 0x218], 0
call fcn.004030f6
mov eax, dword [ebx + 0x8c]
test eax, eax
je 0x451626
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx + 0x8c], 0
lea eax, [ebx + 0x90]
xor ecx, ecx
cmp dword [eax], ecx
je 0x451639
push ecx
push ecx
call fcn.00403f7d
fld qword [0x4665e0]
push ecx
push ecx
fstp qword [esp]
call fcn.00423b50
push 0x7f
fstp qword [esp + 0x50]
lea eax, [esp + 0x111]
push 0
push eax
mov byte [esp + 0x118], 0
call fcn.00425e90
fld qword [esp + 0x58]
add esp, 0xc
fstp qword [esp]
push str.a__lf_
lea eax, [esp + 0x110]
push 0x80
push eax
call fcn.004253d3
add esp, 0x14
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x108]
push 0x4607d0
push eax
call fcn.00425481
mov esi, dword [ebx + 0x20]
add esp, 0xc
test esi, esi
je 0x4516b0
call fcn.0043ca4a
fld qword [0x4665d8]
xor ecx, ecx
fstp qword [esp + 0x14]
inc ecx
mov eax, 0x7665
cdq
idiv ecx
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fadd qword [esp + 0x14]
fstp qword [esp + 0x14]
cmp ecx, 2
je 0x4516e3
inc ecx
cmp ecx, 0x60e9
jl 0x4516bd
fld qword [esp + 0x14]
push ecx
push ecx
fstp qword [esp]
push 0x4607c8
call fcn.00423a88
mov eax, dword [ebx + 0x20]
add esp, 0xc
test eax, eax
je 0x45170a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebx + 0x20], 0
fld qword [0x4665d0]
fstp qword [esp + 0x14]
fld qword [esp + 0x14]
call fcn.00426fd0
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
imul eax, eax, 0x28b6
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45174a
mov eax, dword [esp + 0x1c]
add eax, 0x2d9b
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
jmp 0x45175b
mov eax, dword [esp + 0x10]
sub eax, 0x52ae
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fstp qword [esp + 0x14]
push dword [esp + 0x10]
fld qword [esp + 0x18]
push ecx
push ecx
fstp qword [esp]
push str._lf__i
call fcn.00423a88
add esp, 0x10
cmp dword [ebx + 0xc4], 0
jbe 0x4518d9
mov eax, 0x4609d8
lea esi, [esp + 0x94]
call fcn.0040fb10
mov byte [esp + 0x218], 5
cmp dword [eax + 0x14], 0x10
mov edi, dword [ebx + 0xc4]
jb 0x4517ad
mov eax, dword [eax]
push edi
push eax
push 0
call fcn.0044c5ed
add esp, 0xc
push 1
xor edi, edi
lea esi, [esp + 0x98]
mov byte [esp + 0x21c], 0
call fcn.00404d2d
fld qword [0x4665c8]
push ecx
push ecx
fstp qword [esp]
call fcn.00423b50
push 0x7f
fstp qword [esp + 0x48]
lea eax, [esp + 0x191]
push edi
push eax
mov byte [esp + 0x198], 0
call fcn.00425e90
fld qword [esp + 0x50]
add esp, 0xc
fstp qword [esp]
push str.a__lf_
lea eax, [esp + 0x190]
push 0x80
push eax
call fcn.004253d3
add esp, 0x14
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x188]
push 0x4607d0
push eax
call fcn.00425481
mov eax, dword [ebx + 0xc0]
mov ecx, dword [eax]
add esp, 0xc
mov dword [esp + 0x24], ecx
cmp ecx, eax
je 0x451884
mov esi, dword [ecx + 0x10]
test esi, esi
je 0x45186f
lea eax, [esi + 8]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esi]
test eax, eax
je 0x451868
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call fcn.00423933
pop ecx
lea eax, [esp + 0x24]
call fcn.004031f2
mov ecx, dword [esp + 0x24]
cmp ecx, dword [ebx + 0xc0]
jne 0x45184b
lea edi, [ebx + 0xbc]
call fcn.00402ee7
fldz
fstp qword [esp + 0x14]
mov dword [esp + 0x10], 0x1375
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*2]
mov dword [esp + 0x1c], eax
push ecx
push ecx
fild dword [esp + 0x24]
fsub qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x464f30]
fstp qword [esp]
call fcn.004254b0
pop ecx
fstp qword [esp + 0x18]
pop ecx
push 0
call fcn.0044c22f
pop ecx
push dword [ebx + 0x2c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
lea eax, [esp + 0x54]
call fcn.0044cdcb
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x68]
lea edi, [ebx + 0x30]
lea esi, [esp + 0x58]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x40], eax
mov eax, dword [esp + 0x6c]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x70]
mov dword [ebx + 0x48], eax
mov eax, dword [esp + 0x74]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x4c], eax
lea eax, [esp + 0x50]
movsd dword es:[edi], dword [esi]
call fcn.0044cdf5
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x451940
push esi
call fcn.0044b7ed
push esi
call fcn.00423933
pop ecx
fldz
fstp qword [esp + 0x14]
mov dword [esp + 0x10], 0x7d06
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, ecx
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*2]
mov dword [esp + 0x1c], eax
push ecx
push ecx
fild dword [esp + 0x24]
fsub qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x1c]
fmul qword [0x464f30]
fstp qword [esp]
call fcn.004254b0
and dword [ebx + 0x24], 0
fstp qword [esp + 0x1c]
or dword [esp + 0x220], 0xffffffff
pop ecx
pop ecx
lea ebx, [esp + 0x38]
call fcn.004048aa
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f8]
xor ecx, esp
call fcn.0042393e
mov esp, ebp
pop ebp
ret