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

Disassembly:
mov eax, 0x67645f
call fcn.006313fc
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
push dword [esp + 0x80]
mov ecx, 0x76d3a8
call fcn.0051e068
mov edi, dword [esp + 0x84]
push 8
pop ebx
push 4
mov dl, byte [edi + 0x10]
pop esi
mov ecx, dword [eax + ebx]
movzx eax, dl
mov dword [esp + 0x14], ecx
cmp eax, esi
jg 0x520c47
je 0x520b24
xor ebp, ebp
sub eax, ebp
je 0x520b12
dec eax
je 0x520af5
dec eax
je 0x520ad4
dec eax
jne 0x520c56
cmp dl, 3
je 0x520a24
mov edi, ebp
push 0xfde9
lea eax, [esp + 0x40]
mov ecx, edi
push eax
call fcn.0045bd0b
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], 5
cmp dword [esp + 0x50], ebx
jae 0x520a4b
lea eax, [esp + 0x3c]
push 0x6ae4bc
push eax
call fcn.0047a370
mov esi, dword [esp + 0x88]
test al, al
je 0x520aa8
push 9
pop eax
push 0x38
mov word [esi], ax
call fcn.00630af1
pop ecx
mov dword [esp + 0x88], eax
mov byte [esp + 0x74], 6
test eax, eax
je 0x520a96
lea ecx, [esp + 0x3c]
push ecx
push dword [esp + 0x84]
mov ecx, eax
call fcn.0051de76
mov ecx, eax
jmp 0x520a98
mov ecx, ebp
mov dword [esi + 8], ecx
mov eax, dword [ecx]
push ecx
mov byte [esp + 0x78], 5
call dword [eax + 4]
jmp 0x520ac3
mov eax, dword [esp + 0x3c]
mov word [esi], bx
cmp dword [esp + 0x50], ebx
jae 0x520ab9
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi + 8], eax
push ebp
push 1
lea ecx, [esp + 0x44]
call fcn.0042341c
jmp 0x520deb
mov esi, dword [esp + 0x88]
mov ecx, edi
push 0x14
pop eax
push ebp
push ebp
mov word [esi], ax
call fcn.0045baa6
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
jmp 0x520deb
mov esi, dword [esp + 0x88]
mov ecx, edi
push 3
pop eax
push ebp
mov word [esi], ax
call fcn.0045bb16
mov dword [esi + 8], eax
jmp 0x520deb
mov eax, dword [esp + 0x88]
push 0x18
pop ecx
mov word [eax], cx
jmp 0x520deb
xor ebp, ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.0048de1c
push edi
mov dword [esp + 0x78], esi
call fcn.0045b267
mov esi, eax
mov dword [esp + 0x84], ebp
mov ecx, esi
mov dword [esp + 0x10], esi
mov ebx, ebp
call fcn.0045ba56
test eax, eax
je 0x520bd4
push ebx
mov ecx, esi
call fcn.0045b9f9
mov ebx, eax
lea edi, [esp + 0x2c]
xor eax, eax
lea ecx, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call fcn.005243c1
lea ecx, [esp + 0x18]
call fcn.004d3981
mov esi, eax
push esi
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [esp + 0x8c]
push esi
push ebx
push dword [esp + 0x8c]
call fcn.005209b4
mov esi, eax
test esi, esi
js 0x520c2f
mov ebx, dword [esp + 0x84]
mov esi, dword [esp + 0x10]
inc ebx
mov ecx, esi
mov dword [esp + 0x84], ebx
call fcn.0045ba56
cmp ebx, eax
jb 0x520b67
push dword [esp + 0x88]
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x1e0]
call fcn.00546f12
cmp dword [esp + 0x28], 0
jbe 0x520c0e
push ebp
lea ecx, [esp + 0x1c]
call fcn.004f47a5
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
inc ebp
cmp ebp, dword [esp + 0x28]
jb 0x520bf6
lea ecx, [esp + 0x18]
call fcn.0041fd99
lea ecx, [esp + 0x18]
call fcn.0041fd99
push dword [esp + 0x18]
call fcn.0040a313
pop ecx
jmp 0x520deb
lea ecx, [esp + 0x18]
call fcn.0041fd99
push dword [esp + 0x18]
call fcn.0040a313
pop ecx
jmp 0x520e0e
sub eax, 5
je 0x520ca1
dec eax
je 0x520c82
sub eax, 0xf8
je 0x520c5d
push str.Unable_to_process_arguments_with_an_unknown_type
jmp 0x520c87
mov ecx, dword [esp + 0x88]
push 0xb
pop eax
mov word [ecx], ax
mov eax, dword [edi + 8]
or eax, dword [edi + 0xc]
je 0x520c77
or eax, 0xffffffff
jmp 0x520c79
xor eax, eax
mov word [ecx + 8], ax
jmp 0x520deb
push str.Unable_to_process_arguments_of_this_type
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [esp + 0x8c]
mov dword [ecx + 8], eax
mov eax, 0x80004005
jmp 0x520e10
mov esi, dword [esp + 0x88]
push esi
push dword [ecx + 0x1e0]
call fcn.0053e754
test eax, eax
js 0x520e10
mov eax, dword [esi + 8]
lea edx, [esp + 0x88]
xor ebp, ebp
push edx
mov dword [esp + 0x8c], ebp
mov ecx, dword [eax]
push 0x70378c
push eax
mov dword [esp + 0x80], ebp
call dword [ecx]
mov esi, eax
test esi, esi
js 0x520df8
cmp byte [edi + 0x10], 5
je 0x520cf3
mov edi, ebp
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [esp + 0x84], eax
jmp 0x520dcd
lea esi, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
push esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 1
call fcn.0045ad08
lea eax, [esp + 0x2c]
mov byte [esp + 0x74], 2
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push dword [esp + 0x8c]
lea eax, [esp + 0x30]
push eax
lea eax, [esi + 0xc]
push eax
push dword [esp + 0x8c]
call fcn.005209b4
mov esi, eax
test esi, esi
js 0x520def
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
call fcn.0047a1e1
mov byte [esp + 0x78], 3
cmp dword [eax + 0x14], ebx
jb 0x520d79
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x90]
push ecx
mov ecx, esp
mov dword [ecx], eax
mov eax, dword [esp + 0x94]
test eax, eax
je 0x520d97
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
call fcn.00546e5f
push ebp
push 1
lea ecx, [esp + 0x5c]
mov esi, eax
call fcn.0042341c
test esi, esi
js 0x520def
lea ecx, [esp + 0x18]
call fcn.0041abd3
lea ecx, [esp + 0x84]
call fcn.0045d8b6
mov ecx, dword [edi + 8]
mov eax, dword [esp + 0x84]
cmp eax, dword [ecx]
jne 0x520d06
or dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x88]
test eax, eax
je 0x520deb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x520e10
lea ecx, [esp + 0x18]
call fcn.0041abd3
or dword [esp + 0x74], 0xffffffff
mov eax, dword [esp + 0x88]
test eax, eax
je 0x520e0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10