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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x668
mov eax, dword [0x4213f0]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x260]
push eax
push 0x41c2a8
push 0x15
xor ebx, ebx
push ebx
push 0x41c308
mov byte [ebp - 0x259], 0
mov byte [ebp - 0x25a], 0
mov dword [ebp - 0x264], ebx
call edi
test eax, eax
jl 0x4014d9
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4014d9
lea edx, [ebp - 0x268]
push edx
mov dword [ebp - 0x268], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x264]
push eax
push 0x41c2c8
push 0x15
push ebx
push 0x41c328
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x4015b7
cmp eax, ebx
jl 0x4015b7
cmp dword [ebp - 0x264], ebx
je 0x4015b7
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x264]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi]
mov byte [ebp - 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [ebp - 0x93], 1
mov dword [ebp - 0x258], eax
jne 0x40155e
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x4015b7
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x4015b7
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f480
mov al, byte [esi + 0x30]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
mov byte [ebp - 0x93], al
mov eax, dword [esi + 0x1c]
push edi
push dword [esi]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x264]
mov byte [ebp - 0x92], 0xf9
mov dword [ebp - 0xe0], 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test byte [esi + 0x5c], 0xf0
je 0x401666
cmp dword [ebp - 0x258], ebx
jl 0x401666
cmp dword [ebp - 0x264], ebx
je 0x401676
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x264]
add esp, 0xc
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi + 0x5c]
mov byte [ebp - 0x92], 0xf9
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp byte [ebp - 0x93], 1
jne 0x40161b
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x401666
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x401666
mov cl, byte [esi + 0x8c]
lea edx, [ebp - 0xf4]
push edx
push edi
push dword [esi + 0x5c]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x264]
mov byte [ebp - 0x93], cl
mov byte [ebp - 0x92], 0xf9
mov dword [ebp - 0xe0], 2
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x264]
cmp eax, ebx
je 0x401676
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x401bea
mov ebx, 0x16c
push ebx
lea eax, [ebp - 0x5f8]
push 0
push eax
call fcn.0040f480
push 0x6c
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x5f8]
push edx
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x4016c8
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.0040f480
mov ecx, dword [esi]
mov eax, dword [esi + 0x170]
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x474], ecx
mov dword [ebp - 0x2c4], ecx
mov cx, word [esi + 4]
mov word [ebp - 0x458], cx
mov cx, word [esi + 8]
mov word [ebp - 0x456], cx
mov cx, word [esi + 0xc]
mov word [ebp - 0x454], cx
mov cx, word [esi + 0x10]
mov word [ebp - 0x452], cx
mov cx, word [esi + 0x60]
mov word [ebp - 0x414], cx
mov cx, word [esi + 0x64]
mov word [ebp - 0x412], cx
mov cx, word [esi + 0x68]
mov word [ebp - 0x410], cx
mov cx, word [esi + 0x6c]
add esp, 0xc
mov dword [ebp - 0x47c], eax
mov dword [ebp - 0x430], edx
mov dword [ebp - 0x2b4], eax
mov dword [ebp - 0x2c0], edx
mov word [ebp - 0x40e], cx
cmp eax, 8
jne 0x4017b7
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x444], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x440], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x43c], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x438], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x400], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x3fc], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x3f8], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x3f4], eax
push 0x128
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.0040f480
mov eax, dword [ebp - 0x47c]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x474]
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x430]
lea edx, [ebp - 0xbc]
push edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
push 0x128
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x401b1a
cmp dword [ebp + 0x68], 1
jne 0x401828
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x48c]
push edx
push ebx
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x401b1a
cmp byte [ebp + 0x7c], 1
mov byte [ebp - 0x259], 1
jne 0x401bda
mov eax, dword [esi]
mov ebx, 0xff00
test al, 0xf
jne 0x4018f9
test ebx, eax
jne 0x4018f9
test al, 0xf0
je 0x40193e
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x41c2c8
push 0x15
push 0
push 0x41c328
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40193e
cmp dword [ebp - 0x258], 0
je 0x40193e
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040f480
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x4018eb
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x4018c9
mov eax, 0x1f4
lea edx, [ebp - 0x254]
push edx
push edi
push dword [esi]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40193e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40193e
mov dword [ebp - 0x2a0], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0x3c]
lea edx, [ebp - 0x2d4]
push edx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x260]
push 0x6c
mov dword [ebp - 0x2a4], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
and dword [ebp - 0x2a4], 0
mov eax, dword [esi + 0x5c]
test al, 0xf
jne 0x401acd
test ebx, eax
jne 0x401acd
test al, 0xf0
je 0x4019e9
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x41c2c8
push 0x15
push 0
push 0x41c328
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4019e9
cmp dword [ebp - 0x258], 0
je 0x4019e9
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040f480
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x4019dd
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x4019ba
mov eax, 0x1f4
lea edx, [ebp - 0x254]
push edx
push edi
push dword [esi + 0x5c]
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x41c2b8
push 0x15
push 0
push 0x41c318
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x401bca
cmp dword [ebp - 0x258], 0
je 0x401bda
push 0x4c
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x320]
push ebx
push eax
call fcn.0040f480
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040f480
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x401b4e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x2f4], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x2f0], eax
mov eax, dword [esi]
mov esi, dword [esi + 0x5c]
lea edx, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x304], eax
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x258]
push edi
mov dword [ebp - 0x300], esi
mov dword [ebp - 0x294], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x288]
cmp eax, dword [ebp - 0x2f4]
jne 0x401ab4
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x2f0]
je 0x401bca
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x320]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x401bca
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4019e9
mov dword [ebp - 0x2a0], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0x98]
lea edx, [ebp - 0x2d4]
push edx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x260]
push 0x6c
mov dword [ebp - 0x2b0], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
jmp 0x4019e9
cmp byte [ebp - 0x25a], 1
jne 0x401b37
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x5f8]
push edx
push ebx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x401b47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x401bf0
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x401b8b
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x268]
push edi
push ecx
mov dword [ebp - 0x268], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x268], eax
je 0x401b8b
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx]
push eax
push dword [esi]
push ecx
call dword [edx + 0x14]
mov ecx, dword [esi + 0x5c]
movzx eax, cx
test eax, eax
je 0x401bca
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x268]
push edi
push ecx
mov dword [ebp - 0x268], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x74]
cmp dword [ebp - 0x268], eax
je 0x401bca
mov ecx, dword [ebp - 0x258]
mov edx, dword [ecx]
push eax
push dword [esi + 0x5c]
push ecx
call dword [edx + 0x14]
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x401bda
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x401bea
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, byte [ebp - 0x259]
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f4fa
add ebp, 0x70
leave
ret 8