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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x840
push ebx
push ebp
push esi
push edi
mov ebp, ecx
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4034c5
mov eax, dword [ebp + 0x12c]
test eax, eax
je 0x4034c5
lea ecx, [ebp + 0xc8]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403427
push 0x3e7
sub eax, esi
lea edx, [esp + 0x84]
push edx
inc eax
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp + 0x44]
push edx
push 0x800
push 1
lea edx, [esp + 0x58]
lea eax, [esp + 0x8c]
push edx
mov dword [esp + 0x5c], eax
mov eax, dword [ebp + 0x12c]
mov ecx, dword [eax]
push 0x57c714
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x40394b
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x1e0]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x24], ecx
je 0x4034b0
inc ecx
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x84]
test eax, eax
jne 0x4034a1
test byte [ebp + 0x134], 4
mov dword [esp + 0x48], 0xfffffffd
je 0x4034e2
test ecx, ecx
jne 0x4034d2
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x48]
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], edx
test ecx, ecx
mov dword [esp + 0x1c], 0
jbe 0x4037aa
shl ecx, 4
push ecx
call fcn.005635a3
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x403511
mov eax, 0x8007000e
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24]
shl ecx, 4
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x24]
xor esi, esi
test eax, eax
mov dword [esp + 0x1c], ebx
jbe 0x403553
mov edi, ebx
lea ebx, [ebx]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x24]
inc esi
add edi, 0x10
cmp esi, eax
jb 0x403540
lea edi, [eax - 1]
mov eax, dword [ebp + 0x1e0]
test eax, eax
mov dword [esp + 0x14], edi
je 0x4037aa
mov ecx, edi
shl ecx, 4
lea ebp, [ecx + ebx]
lea ecx, [ebp + 8]
jmp 0x403580
mov edx, dword [eax + 0x78]
test edx, edx
mov dword [eax + 0x80], 0xffffffff
lea edx, [eax + 0x68]
je 0x4035a1
mov dword [ecx], edx
mov word [ebp], 0xc
jmp 0x403791
mov si, word [edx]
cmp si, 0x10
jne 0x4035c3
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4035b9
lea edx, [eax + 0x70]
jmp 0x403774
mov dl, byte [eax + 0x70]
mov byte [ecx], dl
jmp 0x403776
cmp si, 2
jne 0x4035e4
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4035d8
lea edx, [eax + 0x70]
jmp 0x403774
mov dx, word [eax + 0x70]
mov word [ecx], dx
jmp 0x403776
cmp si, 3
jne 0x4035fd
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0x11
jne 0x403612
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4035b9
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0x12
jne 0x403627
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4035d8
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0x13
jne 0x403640
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0x16
jne 0x403659
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0x17
jne 0x403672
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 4
jne 0x403691
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403687
lea edx, [eax + 0x70]
jmp 0x403774
fld dword [eax + 0x70]
fstp dword [ecx]
jmp 0x403776
cmp si, 5
jne 0x4036b0
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4036a6
lea edx, [eax + 0x70]
jmp 0x403774
fld qword [eax + 0x70]
fstp qword [ecx]
jmp 0x403776
cmp si, 6
jne 0x4036d5
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4036c5
lea edx, [eax + 0x70]
jmp 0x403774
mov edx, dword [eax + 0x70]
mov dword [ecx], edx
mov edx, dword [eax + 0x74]
mov dword [ecx + 4], edx
jmp 0x403776
cmp si, 7
jne 0x4036ea
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4036a6
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0xe
jne 0x403715
mov ebx, dword [eax + 0x7c]
test ebx, ebx
jne 0x403774
mov ebx, dword [edx]
mov edi, ebp
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov ebx, dword [edx + 8]
mov dword [edi + 8], ebx
mov edx, dword [edx + 0xc]
mov dword [edi + 0xc], edx
mov edi, dword [esp + 0x14]
jmp 0x403776
cmp si, 0xb
jne 0x40372b
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4035d8
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 8
jne 0x40373d
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0xa
jne 0x40374f
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 9
jne 0x403761
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403771
lea edx, [eax + 0x70]
jmp 0x403774
cmp si, 0xd
jne 0x403776
mov edx, dword [eax + 0x7c]
test edx, edx
lea edx, [eax + 0x70]
jne 0x403774
mov edx, dword [eax + 0x70]
mov dword [ecx], edx
mov word [ebp], si
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403791
or esi, 0x4000
mov word [ebp], si
mov dword [eax + 0x80], edi
mov eax, dword [eax + 0x84]
dec edi
sub ebp, 0x10
sub ecx, 0x10
test eax, eax
mov dword [esp + 0x14], edi
jne 0x403580
mov esi, dword [esp + 0x18]
lea ebx, [esi + 0x138]
push ebx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov bp, word [esi + 0x134]
mov eax, ebx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x18]
add esi, 0x148
mov ecx, 8
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x168]
mov eax, dword [eax + 0x1dc]
test eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
je 0x40380f
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x12c]
mov edx, dword [eax]
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x64]
push ecx
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x54]
push ebp
push 0x800
push 0x57c714
push ecx
push eax
call dword [edx + 0x18]
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00403050
test eax, eax
je 0x403903
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebx], edx
mov edx, dword [esp + 0x38]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x3c]
mov eax, esi
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [ebx + 0xc], ecx
mov ecx, 8
lea esi, [esp + 0x60]
lea edi, [eax + 0x148]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x1e0]
test esi, esi
mov word [eax + 0x134], bp
mov dword [eax + 0x168], edx
je 0x403903
mov edi, dword [sym.imp.OLEAUT32.dll_DispGetIDsOfNames]
mov eax, dword [esi + 0x80]
test eax, eax
jl 0x4038f9
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor eax, eax
mov ax, word [esi + 0x68]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0x80]
lea edx, [esp + 0x54]
push edx
lea edx, [esp + 0x24]
push eax
push ecx
push edx
call edi
test eax, eax
jne 0x4038f9
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], edx
mov dword [esi + 0x74], eax
mov esi, dword [esi + 0x84]
test esi, esi
jne 0x4038a5
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x403936
mov esi, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov ebp, esi
jbe 0x403936
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [ecx]
cmp word [ebp], 8
jne 0x40392e
push esi
call ebx
mov eax, dword [esp + 0x24]
inc edi
add esi, 0x10
cmp edi, eax
jb 0x403920
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403947
push eax
call fcn.005635b5
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret