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

Disassembly:
push 0xffffffffffffffff
push 0x596f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x34]
xor eax, eax
cmp ecx, eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
jbe 0x422308
mov ebx, dword [esp + 0x34]
mov edi, dword [ebx]
mov dword [esp + 0x14], edi
call fcn.0058ec69
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x40]
push eax
push edi
push ecx
call fcn.005298a6
add esp, 0x10
mov edi, eax
mov ebp, dword [esi + 0xc8]
mov dword [esp + 0x2c], 0
add ebp, 0x14
cmp ebp, edi
je 0x422299
mov eax, dword [edi + 4]
mov ecx, dword [ebp + 4]
cmp ecx, eax
je 0x422287
cmp byte [ebp], 0
je 0x422280
test ecx, ecx
je 0x422280
mov edx, dword [ecx]
push 1
call dword [edx + 0x20]
mov al, byte [edi]
mov byte [ebp], al
jmp 0x422290
cmp byte [edi], 0
je 0x422290
mov byte [ebp], 1
mov byte [edi], 0
mov edi, dword [edi + 4]
mov dword [ebp + 4], edi
mov al, byte [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
test al, al
je 0x4222b8
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4222b8
mov edx, dword [ecx]
push 1
call dword [edx + 0x20]
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x422513
mov eax, dword [ecx]
call dword [eax + 0x24]
and eax, 0xff
mov dword [esp + 0x18], eax
jne 0x4222f3
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x42222c
jmp 0x422308
mov eax, dword [esp + 0x40]
test eax, eax
je 0x422308
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, dword [ecx + edx*4]
mov dword [eax], ecx
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x422326
test ecx, ecx
je 0x422326
mov dword [eax + 0x1c], 0
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov edi, dword [esi + 0xc8]
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x422345
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
xor ecx, ecx
test eax, eax
setge cl
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x4223f7
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
jne 0x4223f7
add eax, 0x24
push eax
push 0x5fe2a0
push 7
push 0
push 0x5b18a8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4223f7
lea edx, [esp + 0x38]
mov ecx, esi
push edx
call fcn.00421d10
mov ecx, eax
call fcn.00524fb4
mov ebx, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x4223a2
mov dword [esp + 0x38], eax
jmp 0x4223a9
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x38], eax
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
dec edi
push edi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebp, eax
test ebp, ebp
je 0x4223db
push edi
push ebp
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0xc8]
mov edx, dword [esp + 0x38]
push 0
push edx
mov eax, dword [eax + 0x24]
mov edx, dword [esp + 0x1c]
push ebp
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [esi + 0xc8]
add eax, 0x1c
push eax
push 0x5fe290
push 7
push 0
push 0x5b1898
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4224dd
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.00421d10
mov ecx, eax
call fcn.00524fb4
push 0xffffffffffffffff
push eax
call fcn.00414c50
mov edi, eax
add esp, 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], 1
call fcn.0058ec69
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 8]
push 0xffffffffffffffff
push edx
mov dword [esp + 0x40], ecx
call fcn.00414c50
mov ebp, eax
mov dword [esp + 0x44], ebp
mov eax, dword [esi + 0x78]
push 0xffffffffffffffff
push eax
mov byte [esp + 0x3c], 2
call fcn.00414c50
mov ebx, eax
add esp, 0x10
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0xc8]
mov edx, dword [esp + 0x38]
push edi
push edx
mov eax, dword [eax + 0x1c]
mov edx, dword [esp + 0x1c]
push ebp
push edx
mov ecx, dword [eax]
push ebx
push eax
mov byte [esp + 0x44], 3
call dword [ecx + 0xc]
push ebx
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call ebx
push ebp
call ebx
push edi
mov dword [esp + 0x30], 0xffffffff
call ebx
mov eax, dword [esi + 0xc8]
push 0
mov eax, dword [eax + 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
test eax, eax
je 0x422517
xor eax, eax
jmp 0x42256b
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x4224f7
push 0xffffffffffffffff
push 0x40
push 0x6f02
call fcn.0057e494
xor eax, eax
jmp 0x42256b
mov eax, dword [eax + 0x18]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x4c]
test al, al
je 0x422517
push 0xffffffffffffffff
push 0
push 0x6f1d
call fcn.0057e494
xor eax, eax
jmp 0x42256b
mov ecx, dword [esi + 0xc8]
mov edi, dword [ecx + 0x18]
mov ebx, dword [edi]
call fcn.00524fb4
push eax
mov ecx, edi
call dword [ebx + 0x18]
test al, al
jne 0x422558
push 0xffffffffffffffff
push 0x10
push 0x6f1c
call fcn.0057e494
mov ecx, esi
call fcn.00421f60
push eax
mov ecx, esi
call fcn.00421cf0
push eax
mov ecx, esi
call fcn.00421830
jmp 0x42256b
mov eax, dword [esi + 0xc8]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
call dword [edx + 0x28]
and eax, 0xff
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10