Function at 0x403660
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 0x403734
mov eax, dword [ebp + 0x12c]
test eax, eax
je 0x403734
lea ecx, [ebp + 0xc8]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403697
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 0x58bdf8
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x403c22
mov ecx, dword [ebp + 0x250]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
je 0x40371f
nop
inc eax
mov dword [esp + 0x24], eax
mov ecx, dword [ecx + 0x84]
test ecx, ecx
jne 0x403710
test byte [ebp + 0x198], 4
mov dword [esp + 0x48], 0xfffffffd
je 0x403751
test eax, eax
jne 0x403741
mov eax, 0x80070057
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x48]
mov dword [esp + 0x28], 1
mov dword [esp + 0x20], ecx
test eax, eax
mov dword [esp + 0x1c], 0
jbe 0x403a1a
shl eax, 4
push eax
call fcn.00570098
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x403780
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 0x4037c3
mov edi, ebx
lea esp, [esp]
push edi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x24]
inc esi
add edi, 0x10
cmp esi, eax
jb 0x4037b0
lea edi, [eax - 1]
mov eax, dword [ebp + 0x250]
test eax, eax
mov dword [esp + 0x14], edi
je 0x403a1a
mov ecx, edi
shl ecx, 4
lea ebp, [ecx + ebx]
lea ecx, [ebp + 8]
jmp 0x4037f0
mov edx, dword [eax + 0x78]
test edx, edx
mov dword [eax + 0x80], 0xffffffff
lea edx, [eax + 0x68]
je 0x403811
mov dword [ecx], edx
mov word [ebp], 0xc
jmp 0x403a01
mov si, word [edx]
cmp si, 0x10
jne 0x403833
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403829
lea edx, [eax + 0x70]
jmp 0x4039e4
mov dl, byte [eax + 0x70]
mov byte [ecx], dl
jmp 0x4039e6
cmp si, 2
jne 0x403854
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403848
lea edx, [eax + 0x70]
jmp 0x4039e4
mov dx, word [eax + 0x70]
mov word [ecx], dx
jmp 0x4039e6
cmp si, 3
jne 0x40386d
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0x11
jne 0x403882
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403829
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0x12
jne 0x403897
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403848
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0x13
jne 0x4038b0
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0x16
jne 0x4038c9
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0x17
jne 0x4038e2
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 4
jne 0x403901
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4038f7
lea edx, [eax + 0x70]
jmp 0x4039e4
fld dword [eax + 0x70]
fstp dword [ecx]
jmp 0x4039e6
cmp si, 5
jne 0x403920
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403916
lea edx, [eax + 0x70]
jmp 0x4039e4
fld qword [eax + 0x70]
fstp qword [ecx]
jmp 0x4039e6
cmp si, 6
jne 0x403945
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403935
lea edx, [eax + 0x70]
jmp 0x4039e4
mov edx, dword [eax + 0x70]
mov dword [ecx], edx
mov edx, dword [eax + 0x74]
mov dword [ecx + 4], edx
jmp 0x4039e6
cmp si, 7
jne 0x40395a
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403916
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0xe
jne 0x403985
mov ebx, dword [eax + 0x7c]
test ebx, ebx
jne 0x4039e4
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 0x4039e6
cmp si, 0xb
jne 0x40399b
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403848
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 8
jne 0x4039ad
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0xa
jne 0x4039bf
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 9
jne 0x4039d1
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x4039e1
lea edx, [eax + 0x70]
jmp 0x4039e4
cmp si, 0xd
jne 0x4039e6
mov edx, dword [eax + 0x7c]
test edx, edx
lea edx, [eax + 0x70]
jne 0x4039e4
mov edx, dword [eax + 0x70]
mov dword [ecx], edx
mov word [ebp], si
mov edx, dword [eax + 0x7c]
test edx, edx
je 0x403a01
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 0x4037f0
mov esi, dword [esp + 0x18]
lea ebp, [esi + 0x1a0]
push ebp
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov bx, word [esi + 0x198]
mov eax, ebp
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, 0x1b0
mov ecx, 8
lea edi, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1d0]
mov eax, dword [eax + 0x248]
test eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x2c], ecx
je 0x403a7f
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 ebx
push 0x800
push 0x58bdf8
push ecx
push eax
call dword [edx + 0x18]
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.004032b0
test eax, eax
je 0x403bdd
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [ebp], edx
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebp + 8], ecx
mov ecx, dword [esp + 0x3c]
mov eax, esi
mov dword [ebp + 0xc], ecx
mov ecx, 8
lea esi, [esp + 0x60]
lea edi, [eax + 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax + 0x250]
test esi, esi
mov ecx, dword [esp + 0x2c]
mov word [eax + 0x198], bx
mov dword [eax + 0x1d0], ecx
je 0x403b78
mov edi, dword [sym.imp.OLEAUT32.dll_DispGetIDsOfNames]
mov eax, dword [esi + 0x80]
test eax, eax
jl 0x403b6a
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
xor edx, edx
mov dx, word [esi + 0x68]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi + 0x80]
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x24]
push edx
push eax
push ecx
call edi
test eax, eax
jne 0x403b6a
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov dword [esi + 0x68], edx
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], ecx
mov dword [esi + 0x74], edx
mov esi, dword [esi + 0x84]
test esi, esi
jne 0x403b16
mov edx, dword [esp + 0x30]
cmp dx, 9
je 0x403b84
cmp dx, 0xd
jne 0x403bdd
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x134]
test al, al
lea edi, [ecx + 0x134]
je 0x403bdd
call fcn.004023b0
test eax, eax
je 0x403bdd
mov esi, eax
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
mov byte [ecx + esi], dl
inc ecx
test dl, dl
jne 0x403ba7
mov edx, dword [esp + 0x30]
lea ecx, [eax + 0x68]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov dword [eax + 0x78], 0
mov dword [eax + 0x7c], 1
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x403c0d
mov esi, dword [esp + 0x1c]
xor edi, edi
test eax, eax
mov ebp, esi
jbe 0x403c0d
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp word [ebp], 8
jne 0x403c05
push esi
call ebx
mov eax, dword [esp + 0x24]
inc edi
add esi, 0x10
cmp edi, eax
jb 0x403bf7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403c1e
push eax
call fcn.005700aa
add esp, 4
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret