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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x668
mov eax, dword [0x427520]
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 0x41f5fc
push 0x15
xor ebx, ebx
push ebx
push 0x41f65c
mov byte [ebp - 0x259], 0
mov byte [ebp - 0x25a], 0
mov dword [ebp - 0x264], ebx
call edi
test eax, eax
jl 0x4027cc
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x4027cc
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 0x41f61c
push 0x15
push ebx
push 0x41f67c
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x4028aa
cmp eax, ebx
jl 0x4028aa
cmp dword [ebp - 0x264], ebx
je 0x4028aa
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f5b0
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 0x402851
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x4028aa
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x4028aa
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f5b0
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 0x402959
cmp dword [ebp - 0x258], ebx
jl 0x402959
cmp dword [ebp - 0x264], ebx
je 0x402969
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f5b0
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 0x40290e
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x402959
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x402959
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 0x402969
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x402edd
mov ebx, 0x16c
push ebx
lea eax, [ebp - 0x5f8]
push 0
push eax
call fcn.0040f5b0
push 0x6c
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.0040f5b0
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 0x4029bb
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x48c]
push 0
push eax
call fcn.0040f5b0
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 0x402aaa
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.0040f5b0
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 0x402e0d
cmp dword [ebp + 0x68], 1
jne 0x402b1b
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 0x402e0d
cmp byte [ebp + 0x7c], 1
mov byte [ebp - 0x259], 1
jne 0x402ecd
mov eax, dword [esi]
mov ebx, 0xff00
test al, 0xf
jne 0x402bec
test ebx, eax
jne 0x402bec
test al, 0xf0
je 0x402c31
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x41f61c
push 0x15
push 0
push 0x41f67c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402c31
cmp dword [ebp - 0x258], 0
je 0x402c31
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040f5b0
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x402bde
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x402bbc
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 0x402c31
mov eax, dword [esi + 0x14]
test eax, eax
je 0x402c31
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 0x402dc0
test ebx, eax
jne 0x402dc0
test al, 0xf0
je 0x402cdc
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x41f61c
push 0x15
push 0
push 0x41f67c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402cdc
cmp dword [ebp - 0x258], 0
je 0x402cdc
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040f5b0
mov eax, dword [esi + 0x70]
add esp, 0xc
test eax, eax
je 0x402cd0
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x402cad
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 0x41f60c
push 0x15
push 0
push 0x41f66c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402ebd
cmp dword [ebp - 0x258], 0
je 0x402ecd
push 0x4c
pop edi
push edi
xor ebx, ebx
lea eax, [ebp - 0x320]
push ebx
push eax
call fcn.0040f5b0
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040f5b0
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x402e41
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 0x402da7
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x2f0]
je 0x402ebd
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x320]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x402ebd
mov eax, dword [esi + 0x70]
test eax, eax
je 0x402cdc
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 0x402cdc
cmp byte [ebp - 0x25a], 1
jne 0x402e2a
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 0x402e3a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x402ee3
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x402e7e
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 0x402e7e
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 0x402ebd
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 0x402ebd
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 0x402ecd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x402edd
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.0040f62a
add ebp, 0x70
leave
ret 8