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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x68c
mov eax, dword [0x4296e0]
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 0x4205f8
xor ebx, ebx
push 0x15
push ebx
push 0x420658
mov dword [ebp - 0x264], ecx
mov byte [ebp - 0x259], bl
mov byte [ebp - 0x25a], bl
mov dword [ebp - 0x268], ebx
call edi
test eax, eax
jl 0x40289f
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x40289f
lea edx, [ebp - 0x258]
push edx
mov dword [ebp - 0x258], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x268]
push eax
push 0x420618
push 0x15
push ebx
push 0x420678
call edi
test byte [esi], 0xf0
mov dword [ebp - 0x258], eax
mov edi, 0x160
je 0x402981
cmp eax, ebx
jl 0x402981
cmp dword [ebp - 0x268], ebx
je 0x402981
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f890
mov eax, dword [ebp - 0x268]
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 0x402924
and dword [ebp - 0xd0], 0xfff00000
cmp dword [ebp - 0x258], ebx
jl 0x402981
mov eax, dword [ebp - 0xd0]
test dword [esi + 0x1c], eax
je 0x402981
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f890
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 - 0x268]
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 0x402a30
cmp dword [ebp - 0x258], ebx
jl 0x402a30
cmp dword [ebp - 0x268], ebx
je 0x402a40
push edi
lea eax, [ebp - 0xf4]
push ebx
push eax
call fcn.0040f890
mov eax, dword [ebp - 0x268]
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 0x4029e5
and dword [ebp - 0xd0], 0xfff00000
cmp eax, ebx
jl 0x402a30
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0xd0]
test ecx, eax
je 0x402a30
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 - 0x268]
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 - 0x268]
cmp eax, ebx
je 0x402a40
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x260], ebx
je 0x403294
mov ebx, 0x170
push ebx
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.0040f890
push 0x88
lea eax, [ebp - 0x2f0]
push 0
push eax
call fcn.0040f890
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
add esp, 0x18
lea edx, [ebp - 0x61c]
push edx
push ebx
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x402a95
mov byte [ebp - 0x25a], 1
push ebx
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.0040f890
mov eax, dword [esi + 0x170]
mov ecx, dword [esi]
mov edx, dword [esi + 0x5c]
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x448], ecx
mov dword [ebp - 0x2d0], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x2e0], ecx
mov ecx, dword [esi + 8]
add esp, 0xc
mov dword [ebp - 0x404], edx
mov dword [ebp - 0x2dc], edx
cmp eax, ecx
jbe 0x402af1
mov ax, word [esi + 4]
mov word [ebp - 0x42c], ax
mov ax, word [esi + 8]
jmp 0x402b11
push dword [esi + 0x18]
push ecx
push eax
call fcn.004026e7
add esp, 0xc
test eax, eax
jne 0x402ae0
mov ax, word [esi + 8]
mov word [ebp - 0x42c], ax
mov ax, word [esi + 4]
mov ecx, dword [esi + 0x64]
mov word [ebp - 0x42a], ax
mov ax, word [esi + 0x34]
mov word [ebp - 0x41c], ax
mov ax, word [esi + 0xc]
mov word [ebp - 0x428], ax
mov ax, word [esi + 0x10]
mov word [ebp - 0x426], ax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x33c], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x32c], eax
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x31c], eax
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x30c], eax
mov eax, dword [esi + 0x60]
cmp eax, ecx
jbe 0x402b78
mov ax, word [esi + 0x60]
mov word [ebp - 0x3e8], ax
mov ax, word [esi + 0x64]
jmp 0x402b98
push dword [esi + 0x74]
push ecx
push eax
call fcn.004026e7
add esp, 0xc
test eax, eax
jne 0x402b67
mov ax, word [esi + 0x64]
mov word [ebp - 0x3e8], ax
mov ax, word [esi + 0x60]
cmp dword [esi + 0x170], 8
mov word [ebp - 0x3e6], ax
mov ax, word [esi + 0x90]
mov word [ebp - 0x3d8], ax
mov ax, word [esi + 0x68]
mov word [ebp - 0x3e4], ax
mov ax, word [esi + 0x6c]
mov word [ebp - 0x3e2], ax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x338], eax
mov eax, dword [esi + 0x70]
mov dword [ebp - 0x328], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x318], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x308], eax
jne 0x402c47
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x418], eax
mov eax, dword [esi + 0x28]
mov dword [ebp - 0x414], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x410], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x40c], eax
mov eax, dword [esi + 0x80]
mov dword [ebp - 0x3d4], eax
mov eax, dword [esi + 0x84]
mov dword [ebp - 0x3d0], eax
mov eax, dword [esi + 0x7c]
mov dword [ebp - 0x3cc], eax
mov eax, dword [esi + 0x88]
mov dword [ebp - 0x3c8], eax
mov ebx, dword [ebp - 0x264]
push 0xffffffffffffffff
push 0x420a80
mov ecx, ebx
call fcn.00402713
mov eax, dword [ebp - 0x450]
cmp eax, 1
jne 0x402c6f
push 0xffffffffffffffff
push 0x420a5c
jmp 0x402c8e
cmp eax, 8
jne 0x402c7d
push 0xffffffffffffffff
push 0x420a30
jmp 0x402c8e
cmp eax, 4
je 0x402c87
cmp eax, 2
jne 0x402c95
push 0xffffffffffffffff
push 0x420a08
mov ecx, ebx
call fcn.00402713
push 0xffffffffffffffff
push 0x4209f4
mov ecx, ebx
call fcn.00402713
push dword [ebp - 0x448]
mov ecx, ebx
call fcn.00402750
movzx eax, word [ebp - 0x42c]
push eax
push 0x4209cc
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x42a]
push eax
push 0x4209a4
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x426]
push eax
push 0x420984
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x428]
push eax
push 0x420964
mov ecx, ebx
call fcn.00402713
cmp dword [ebp - 0x450], 8
je 0x402d16
cmp dword [ebp - 0x450], 4
jne 0x402dd2
push 0xffffffffffffffff
push 0x42094c
mov ecx, ebx
call fcn.00402713
push dword [ebp - 0x404]
mov ecx, ebx
call fcn.00402750
movzx eax, word [ebp - 0x3e8]
push eax
push 0x420920
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x3e6]
push eax
push 0x4208f8
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x3e2]
push eax
push 0x4208d4
mov ecx, ebx
call fcn.00402713
movzx eax, word [ebp - 0x3e4]
push eax
push 0x4208b0
mov ecx, ebx
call fcn.00402713
cmp dword [ebp - 0x450], 8
jne 0x402dd2
push dword [ebp - 0x3cc]
mov ecx, ebx
push 0x42088c
call fcn.00402713
push dword [ebp - 0x3d4]
mov ecx, ebx
push 0x420868
call fcn.00402713
push dword [ebp - 0x3d0]
mov ecx, ebx
push 0x420844
call fcn.00402713
push dword [ebp - 0x3c8]
mov ecx, ebx
push 0x420820
call fcn.00402713
mov ebx, 0x128
push ebx
lea eax, [ebp - 0xbc]
push 0
push eax
call fcn.0040f890
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x448]
add esp, 0xc
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x404]
lea edx, [ebp - 0xbc]
push edx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
push ebx
push eax
call dword [ecx + 0x28]
test eax, eax
jl 0x403184
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x68], ebx
jne 0x402e46
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x460]
push edx
push 0x170
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x403184
mov ecx, dword [ebp - 0x264]
push 0xffffffffffffffff
push 0x420804
mov byte [ebp - 0x259], 1
call fcn.00402713
cmp byte [ebp + 0x7c], 1
jne 0x403282
mov eax, dword [esi]
test al, 0xf0
je 0x402f14
and dword [ebp - 0x258], 0
lea eax, [ebp - 0x258]
push eax
push 0x420618
push 0x15
push 0
push 0x420678
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x402f8a
cmp dword [ebp - 0x258], 0
je 0x402f8a
push edi
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.0040f890
mov eax, dword [esi + 0x14]
add esp, 0xc
test eax, eax
je 0x402f06
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x402ee4
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 0x402f8a
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x402f8a
mov dword [ebp - 0x2bc], eax
mov ax, word [esi + 4]
mov word [ebp - 0x2b8], ax
mov ax, word [esi + 8]
mov word [ebp - 0x2b6], ax
mov ax, word [esi + 0xc]
mov dword [ebp - 0x2a4], ecx
mov ecx, dword [esi + 0x38]
mov word [ebp - 0x2b4], ax
mov ax, word [esi + 0x10]
lea edx, [ebp - 0x2f0]
mov dword [ebp - 0x288], ecx
mov ecx, dword [esi + 0x3c]
push edx
mov word [ebp - 0x2b2], ax
mov eax, dword [ebp - 0x260]
push 0x88
mov dword [ebp - 0x2c0], ebx
mov dword [ebp - 0x274], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
and dword [ebp - 0x2c0], 0
mov ecx, dword [esi + 0x5c]
test cl, 0xf0
je 0x40302e
lea eax, [ebp - 0x258]
push eax
push 0x420618
push 0x15
xor ebx, ebx
push ebx
push 0x420678
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4030a5
cmp dword [ebp - 0x258], ebx
je 0x4030a5
push edi
lea eax, [ebp - 0x254]
push ebx
push eax
call fcn.0040f890
mov eax, dword [esi + 0x70]
add esp, 0xc
cmp eax, ebx
je 0x403020
cmp eax, 2
mov dword [ebp - 0x240], 8
mov eax, 0x3e8
je 0x402ffd
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]
jmp 0x4030a5
mov eax, dword [esi + 0x70]
test eax, eax
je 0x4030a3
mov dword [ebp - 0x2a4], eax
mov eax, dword [esi + 0x94]
mov dword [ebp - 0x288], eax
mov eax, dword [esi + 0x98]
mov dword [ebp - 0x274], eax
mov ax, word [esi + 0x60]
mov word [ebp - 0x2b8], ax
mov ax, word [esi + 0x64]
mov word [ebp - 0x2b6], ax
mov ax, word [esi + 0x68]
mov word [ebp - 0x2b4], ax
mov ax, word [esi + 0x6c]
lea edx, [ebp - 0x2f0]
push edx
mov word [ebp - 0x2b2], ax
mov eax, dword [ebp - 0x260]
push 0x88
mov dword [ebp - 0x2cc], ebx
mov dword [ebp - 0x2bc], ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
xor ebx, ebx
lea eax, [ebp - 0x258]
push eax
push 0x420608
push 0x15
push ebx
push 0x420668
mov dword [ebp - 0x258], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x403270
cmp dword [ebp - 0x258], ebx
je 0x403284
push 0x4c
pop edi
push edi
lea eax, [ebp - 0x4ac]
push ebx
push eax
call fcn.0040f890
push edi
lea eax, [ebp - 0x2b4]
push ebx
push eax
call fcn.0040f890
add esp, 0x18
cmp dword [esi + 0x170], 4
jne 0x4031f4
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x480], eax
mov eax, dword [esi + 0x74]
mov dword [ebp - 0x47c], eax
mov eax, dword [esi]
mov esi, dword [esi + 0x5c]
lea edx, [ebp - 0x2b4]
push edx
mov dword [ebp - 0x490], eax
mov dword [ebp - 0x298], eax
mov eax, dword [ebp - 0x258]
push edi
mov dword [ebp - 0x48c], 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 - 0x480]
jne 0x40316b
mov eax, dword [ebp - 0x284]
cmp eax, dword [ebp - 0x47c]
je 0x403270
mov eax, dword [ebp - 0x258]
mov ecx, dword [eax]
lea edx, [ebp - 0x4ac]
push edx
push edi
push eax
call dword [ecx + 0x30]
jmp 0x403270
mov esi, dword [ebp - 0x264]
or edi, 0xffffffff
push edi
push 0x4207e4
mov ecx, esi
call fcn.00402713
cmp byte [ebp - 0x25a], 1
jne 0x4031d0
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
lea edx, [ebp - 0x61c]
push edx
push 0x170
push eax
call dword [ecx + 0x14]
push edi
mov ecx, esi
test eax, eax
jl 0x4031c9
push 0x420798
jmp 0x4031d8
push 0x420748
jmp 0x4031d8
push edi
push 0x4206f8
mov ecx, esi
call fcn.00402713
mov eax, dword [ebp - 0x260]
test eax, eax
je 0x4031ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor al, al
jmp 0x40329a
mov ecx, dword [esi]
movzx eax, cx
test eax, eax
je 0x403231
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x264]
push edi
push ecx
mov dword [ebp - 0x264], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x18]
cmp dword [ebp - 0x264], eax
je 0x403231
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 0x403270
mov eax, dword [ebp - 0x258]
lea edi, [ebp - 0x264]
push edi
push ecx
mov dword [ebp - 0x264], ebx
mov edx, dword [eax]
push eax
call dword [edx + 0x20]
mov eax, dword [esi + 0x74]
cmp dword [ebp - 0x264], eax
je 0x403270
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]
cmp eax, ebx
je 0x403284
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x403284
xor ebx, ebx
mov eax, dword [ebp - 0x260]
cmp eax, ebx
je 0x403294
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.0040f90a
add ebp, 0x70
leave
ret 8