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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa8
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x98]
mov esi, dword [eax + 0x288]
test esi, esi
jge 0x462942
mov ecx, dword [edi + 0x9c]
test ecx, ecx
jne 0x4628bd
mov dword [esp + 0x2c], 3
jmp 0x462946
lea edx, [edi + 0x88]
mov ebx, dword [edi + 0x88]
mov ebp, dword [edx + 4]
mov eax, dword [edx + 8]
mov edx, dword [ecx]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x84]
push eax
call dword [edx + 0x48]
mov ecx, dword [eax + 8]
mov edx, dword [esp + 0x80]
sub ecx, edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
sub edx, ebp
push ecx
sub eax, ebx
push edx
push eax
lea ecx, [esp + 0x84]
call fcn.0041b630
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x54]
mov edx, dword [eax + 4]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], eax
call fcn.0041b780
cdq
and edx, 0xff
add eax, edx
sar eax, 8
neg esi
sub esi, eax
test esi, esi
mov dword [esp + 0x2c], esi
jle 0x46333d
jmp 0x462946
mov dword [esp + 0x2c], esi
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1a4]
mov ecx, dword [eax + 0xe4]
test ecx, ecx
je 0x46333d
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x1a4]
mov ecx, dword [eax + 0xe4]
mov edx, dword [ecx]
call dword [edx + 0x2c]
cmp eax, 6
je 0x46333d
mov eax, dword [edi + 0x98]
mov edx, dword [edi]
mov esi, dword [eax + 0x284]
lea eax, [esp + 0x50]
push eax
mov ecx, dword [esi + 0xa0]
mov dword [esp + 0xa0], ecx
mov ecx, edi
call dword [edx + 0x1a0]
mov ecx, dword [eax]
mov eax, dword [esi + 0xb4]
cdq
and edx, 0xff
mov dword [esp + 0x98], ecx
add eax, edx
xor ecx, ecx
sar eax, 8
cmp eax, 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x74], ecx
mov dword [esp + 0x44], 1
jl 0x462ea0
mov ecx, 0x7908f4
mov dword [esp + 0x40], ecx
mov ebx, dword [ecx]
mov edx, dword [ecx - 4]
cmp edx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0xa0], edx
jge 0x462e84
lea ebx, [edx*4 + 0xa56e48]
mov dword [esp + 0x48], ebx
mov dx, word [ebx]
mov ax, word [ebx + 2]
add dx, word [esp + 0x98]
add ax, word [esp + 0x9a]
mov word [esp + 0x94], dx
mov word [esp + 0x96], ax
mov ecx, dword [esp + 0x94]
lea edx, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
push edx
mov ecx, 0x81a800
call fcn.005453b0
mov ebp, dword [eax + 0xe4]
test ebp, ebp
je 0x462e5a
mov eax, dword [edi + 0x9c]
cmp ebp, eax
je 0x462e5a
test eax, eax
je 0x462e5a
mov ecx, dword [eax + 0x1b4]
push ebp
call fcn.004e4ad0
test al, al
jne 0x462e5a
mov ecx, dword [esi + 0xac]
mov al, byte [esi + 0x10b]
mov edx, dword [esi + 0xa4]
mov ebx, dword [esi + 0xa8]
mov dword [esp + 0xa8], ecx
lea ecx, [esp + 0x90]
push ecx
push 0x79ab00
mov byte [esp + 0xac], al
mov eax, dword [edi + 0x9c]
push 7
push 0
push 0x78cc58
mov dword [esp + 0x7c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0xa4], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x462e41
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x90]
push edx
mov edx, dword [esp + 0x6c]
push ebx
push eax
mov eax, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0xac]
push eax
push ebp
push edx
mov dword [esp + 0x68], ecx
call fcn.0045f160
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x462e41
lea ebx, [edi + 0x88]
mov dword [esp + 0x14], 0
mov eax, ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov ecx, dword [eax]
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 4]
mov ecx, ebp
mov dword [esp + 0x88], edx
mov edx, dword [ebp]
mov eax, dword [eax + 8]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0xac]
push eax
call dword [edx + 0x48]
mov ecx, dword [eax]
sub esp, 8
mov dword [esp + 0x38], ecx
sub esp, 8
fild dword [esp + 0x40]
fisub dword [esp + 0x94]
fstp qword [esp + 8]
fild dword [esp + 0x98]
fisub dword [eax + 4]
fstp qword [esp]
call fcn.004ba120
fsub qword [0x786630]
add esp, 0x10
fmul qword [0x786628]
call fcn.0076a6b0
fld qword [esp + 0x14]
fcomp qword [0x786610]
mov word [esp + 0x60], ax
fnstsw ax
test ah, 0x40
je 0x462bff
fld qword [esp + 0x1c]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x462bff
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40590000
lea ecx, [esp + 0x14]
call fcn.0041b830
movsx edx, word [esp + 0x60]
fstp qword [esp + 0x68]
sub edx, 0x3fff
mov dword [esp + 0x30], edx
fild dword [esp + 0x30]
fmul qword [0x786620]
fstp qword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
push eax
push ecx
call fcn.004b9ff0
fmul qword [esp + 0x70]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push edx
push eax
fstp qword [esp + 0x24]
call fcn.004b9fa0
fmul qword [esp + 0x78]
add esp, 0x10
lea ecx, [esp + 0x14]
fchs
fstp qword [esp + 0x1c]
call fcn.0041b750
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push ecx
push edx
call fcn.004ba120
fsub qword [0x786630]
add esp, 0x10
fmul qword [0x786628]
call fcn.0076a6b0
movsx eax, ax
sub eax, 0x3fff
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul qword [0x786620]
fstp qword [esp + 0x30]
call fcn.0041b7c0
fstp qword [esp + 0x68]
fld qword [esp + 0x30]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
jne 0x462cf7
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
call fcn.004b9ff0
fdivr qword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
push eax
push ecx
fstp qword [esp + 0x24]
call fcn.004b9ff0
fdivr qword [esp + 0x2c]
add esp, 0x10
fstp qword [esp + 0x1c]
push 0x3fe92164
push 0x8732995c
call fcn.004b9ff0
fmul qword [esp + 0x1c]
push 0x3fe92164
push 0x8732995c
fstp qword [esp + 0x24]
call fcn.004b9ff0
fmul qword [esp + 0x2c]
push 0x3fe92164
push 0x8732995c
fstp qword [esp + 0x34]
call fcn.004b9fa0
fmul qword [esp + 0x80]
add esp, 0x18
fstp qword [esp + 0x24]
fild dword [esi + 0xa8]
fstp qword [esp + 0x30]
fld qword [esp + 0x14]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x462d8f
fld qword [esp + 0x1c]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x462d8f
fld qword [esp + 0x24]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x462d8f
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40590000
lea ecx, [esp + 0x14]
call fcn.0041b7c0
fdivr qword [esp + 0x30]
mov edx, ebx
mov eax, dword [edx]
mov dword [esp + 0x78], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x4c]
mov edx, dword [edx + 8]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x7c]
push edx
fld st(0)
fmul qword [esp + 0x1c]
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fmul st(1)
fstp qword [esp + 0x24]
fld qword [esp + 0x2c]
fmul st(1)
fstp qword [esp + 0x2c]
mov eax, dword [ecx]
fstp st(0)
call dword [eax + 0x1d8]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x54], eax
mov al, byte [esi + 0x121]
mov dword [esp + 0x58], ecx
test al, al
mov dword [esp + 0x5c], edx
je 0x462e21
mov ecx, dword [edi + 0x9c]
test ecx, ecx
je 0x462e21
lea eax, [esp + 0x54]
push eax
push esi
push 0
push ebp
call fcn.006bf270
mov al, byte [esi + 0x127]
test al, al
je 0x462e41
mov ecx, dword [edi + 0x9c]
test ecx, ecx
je 0x462e41
lea edx, [esp + 0x54]
push edx
push esi
push ebp
call fcn.006bf4a0
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x74], eax
je 0x46333d
mov ebx, dword [esp + 0x48]
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x38]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0xa0], eax
mov dword [esp + 0x48], ebx
jl 0x462a06
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
add ecx, 4
inc edx
mov dword [esp + 0x40], ecx
cmp edx, eax
mov dword [esp + 0x44], edx
jle 0x4629e3
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
jge 0x46333d
sub eax, ecx
mov dword [esp + 0x48], eax
mov eax, dword [edi]
lea ecx, [esp + 0x68]
push ecx
mov ecx, edi
call dword [eax + 0x1a0]
mov edx, dword [eax]
mov eax, dword [0xa255a0]
push 2
push 0xfffffffffffffffe
lea ecx, [eax + 0x218]
mov dword [esp + 0x34], edx
call fcn.0062fcf0
mov ecx, dword [0xa255a0]
add word [esp + 0x2c], ax
push 2
push 0xfffffffffffffffe
add ecx, 0x218
call fcn.0062fcf0
mov dl, byte [esi + 0x10b]
mov ecx, dword [edi + 0x9c]
add word [esp + 0x2e], ax
mov eax, dword [esi + 0xa4]
mov ebx, dword [esi + 0xa8]
mov ebp, dword [esi + 0xac]
mov byte [esp + 0x50], dl
lea edx, [esp + 0x2c]
mov dword [esp + 0x60], ecx
push edx
mov ecx, 0x81a800
mov dword [esp + 0x3c], eax
call fcn.005453b0
mov dword [esp + 0x30], eax
lea eax, [esp + 0x40]
push eax
push 0x79ab00
push 7
push 0
push 0x78cc58
mov dword [esp + 0x54], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x46332e
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x64]
push ebx
push ebp
push eax
mov eax, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0xb0]
push eax
push edx
mov dword [esp + 0x60], ecx
call fcn.0045f160
mov eax, dword [esp + 0x44]
test eax, eax
je 0x46332e
lea eax, [esp + 0x2c]
mov ecx, 0x81a800
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call fcn.005453b0
lea ebx, [edi + 0x88]
mov ecx, ebx
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x58], edx
mov edx, dword [eax]
mov ecx, dword [ecx + 8]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0xac]
push ecx
mov ecx, eax
call dword [edx + 0x48]
mov edx, dword [eax]
sub esp, 8
mov dword [esp + 0x40], edx
sub esp, 8
fild dword [esp + 0x48]
fisub dword [esp + 0x64]
fstp qword [esp + 8]
fild dword [esp + 0x68]
fisub dword [eax + 4]
fstp qword [esp]
call fcn.004ba120
fsub qword [0x786630]
add esp, 0x10
fmul qword [0x786628]
call fcn.0076a6b0
fld qword [esp + 0x14]
fcomp qword [0x786610]
mov bp, ax
fnstsw ax
test ah, 0x40
je 0x463071
fld qword [esp + 0x1c]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x463071
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40590000
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
sub esp, 8
faddp st(1)
fstp qword [esp]
call fcn.004b9f30
movsx eax, bp
sub eax, 0x3fff
fstp qword [esp + 0x68]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fmul qword [0x786620]
fstp qword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
push ebp
push ecx
call fcn.004b9ff0
fmul qword [esp + 0x70]
mov edx, dword [esp + 0x48]
push ebp
push edx
fstp qword [esp + 0x2c]
call fcn.004b9fa0
fmul qword [esp + 0x78]
add esp, 0x18
fchs
fst qword [esp + 0x1c]
fild dword [esi + 0xa8]
fstp qword [esp + 0x38]
fld qword [esp + 0x14]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x463124
fcom qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x463124
fld qword [esp + 0x24]
fcomp qword [0x786610]
fnstsw ax
test ah, 0x40
je 0x463124
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x40590000
fld qword [esp + 0x24]
fld st(0)
fmul st(1)
fld qword [esp + 0x14]
fmul qword [esp + 0x14]
sub esp, 8
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
call fcn.004b9f30
fdivr qword [esp + 0x40]
add esp, 8
lea ecx, [esp + 0x14]
fld st(0)
fmul qword [esp + 0x14]
fstp qword [esp + 0x14]
fld qword [esp + 0x1c]
fmul st(1)
fstp qword [esp + 0x1c]
fld qword [esp + 0x24]
fmul st(1)
fstp qword [esp + 0x24]
fstp st(0)
call fcn.0041b750
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
sub esp, 8
fstp qword [esp]
push eax
push ecx
call fcn.004ba120
fsub qword [0x786630]
fmul qword [0x786628]
call fcn.0076a6b0
movsx edx, ax
sub edx, 0x3fff
add esp, 8
mov dword [esp + 0x40], edx
fild dword [esp + 0x40]
fmul qword [0x786620]
fstp qword [esp + 0x40]
fld qword [esp + 0x24]
fmul qword [esp + 0x24]
fld qword [esp + 0x2c]
fmul qword [esp + 0x2c]
faddp st(1)
fld qword [esp + 0x1c]
fmul qword [esp + 0x1c]
faddp st(1)
fstp qword [esp]
call fcn.004b9f30
fstp qword [esp + 0x68]
fld qword [esp + 0x40]
fcomp qword [0x786610]
add esp, 8
fnstsw ax
test ah, 0x40
jne 0x463228
mov ebp, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ebp
push eax
call fcn.004b9ff0
fdivr qword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
push ebp
push ecx
fstp qword [esp + 0x24]
call fcn.004b9ff0
fdivr qword [esp + 0x2c]
add esp, 0x10
fstp qword [esp + 0x1c]
push 0x3fe92164
push 0x8732995c
call fcn.004b9ff0
fmul qword [esp + 0x1c]
push 0x3fe92164
push 0x8732995c
fstp qword [esp + 0x24]
call fcn.004b9ff0
fmul qword [esp + 0x2c]
push 0x3fe92164
push 0x8732995c
fstp qword [esp + 0x34]
call fcn.004b9fa0
mov edx, ebx
add esp, 0x18
fmul qword [esp + 0x60]
mov eax, dword [edx]
mov dword [esp + 0x78], eax
mov ecx, dword [edx + 4]
fstp qword [esp + 0x24]
mov edx, dword [edx + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x7c]
push edx
call dword [eax + 0x1d8]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x84], eax
mov al, byte [esi + 0x121]
mov dword [esp + 0x88], ecx
test al, al
mov dword [esp + 0x8c], edx
je 0x4632f6
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x4632f6
lea eax, [esp + 0x84]
lea ecx, [esp + 0x2c]
push eax
push esi
push 0
push ecx
mov ecx, 0x81a800
call fcn.005453b0
mov ecx, dword [edi + 0x9c]
push eax
call fcn.006bf270
mov al, byte [esi + 0x127]
test al, al
je 0x46332e
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x46332e
lea edx, [esp + 0x84]
lea eax, [esp + 0x2c]
push edx
push esi
push eax
mov ecx, 0x81a800
call fcn.005453b0
mov ecx, dword [edi + 0x9c]
push eax
call fcn.006bf4a0
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x48], eax
jne 0x462eb2
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret