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

Disassembly:
push 0xffffffffffffffff
push 0x55a1a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov eax, dword [ecx]
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
push edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebp
jne 0x502cec
mov esi, dword [esp + 0x74]
mov ecx, esi
call fcn.00503110
jmp 0x502fde
lea ecx, [esp + 0x18]
call fcn.00503110
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 1
call fcn.00503110
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 2
call fcn.00503110
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x6c], 3
cmp ebx, ebp
jne 0x502d2b
lea ebx, [esp + 0x18]
push ebp
mov ecx, ebx
call fcn.00503830
lea esi, [ebx + 0x10]
push ebp
mov ecx, esi
mov dword [ebx + 8], ebp
call fcn.00503830
lea edi, [ebx + 0x20]
push ebp
mov ecx, edi
mov dword [esi + 8], ebp
call fcn.00503830
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x10]
mov dword [edi + 8], ebp
mov dword [ebx + 0x44], eax
mov eax, dword [esp + 0x7c]
mov dword [ebx + 0x3c], ebp
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x48], eax
mov dword [ebx + 0x40], 0x64
mov dl, byte [ecx + 4]
test dl, 0x10
je 0x502d89
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov dword [esp + 0x78], ebp
jmp 0x502d93
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x30], ebp
mov dword [esp + 0x78], eax
mov ebp, dword [ecx + 8]
mov eax, dword [edi + 0xc]
inc ebp
cmp ebp, eax
jle 0x502e10
cmp eax, 8
mov dword [esp + 0x80], eax
jge 0x502dbc
mov dword [esp + 0x80], 8
mov eax, dword [esp + 0x80]
cmp ebp, eax
jle 0x502def
add eax, eax
cmp ebp, eax
mov dword [esp + 0x80], eax
jle 0x502de8
lea eax, [ebp + 0xb]
mov ecx, eax
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x502ddf
dec ecx
or ecx, 0xfffffff8
inc ecx
sub eax, ecx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x80]
lea edx, [eax*4]
mov eax, dword [edi + 4]
push edx
push eax
call fcn.005306f5
mov ecx, dword [esp + 0x88]
add esp, 8
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov edx, dword [edi + 8]
cmp edx, ebp
jge 0x502e38
mov edi, dword [edi + 4]
mov ecx, ebp
sub ecx, edx
or eax, 0xffffffff
shl ecx, 2
lea edi, [edi + edx*4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0x28], ebp
mov eax, dword [ebx + 0x24]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
cmp dword [esi + 8], eax
jl 0x502e70
lea edi, [eax + eax]
cmp edi, 8
jge 0x502e56
mov edi, 8
mov edx, dword [esi + 4]
lea ecx, [edi*4]
push ecx
push edx
call fcn.005306f5
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov dword [ecx + eax*4], 0
mov edx, dword [esi + 8]
inc edx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
mov ebp, dword [ebx + 0x30]
mov ecx, edx
cmp ecx, eax
jl 0x502eb7
lea edi, [eax + eax]
cmp edi, 8
jge 0x502e9d
mov edi, 8
mov eax, dword [esi + 4]
lea edx, [edi*4]
push edx
push eax
call fcn.005306f5
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov dword [edx + ecx*4], ebp
mov edx, dword [esi + 8]
inc edx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
mov ecx, edx
cmp ecx, eax
jl 0x502ef7
lea edi, [eax + eax]
cmp edi, 8
jge 0x502edd
mov edi, 8
mov ecx, dword [esi + 4]
lea eax, [edi*4]
push eax
push ecx
call fcn.005306f5
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
mov dword [eax + edx*4], 0xffffffff
mov edx, dword [esi + 8]
inc edx
mov dword [esi + 8], edx
mov eax, dword [esi + 0xc]
mov ecx, edx
cmp ecx, eax
jl 0x502f3b
lea edi, [eax + eax]
cmp edi, 8
jge 0x502f21
mov edi, 8
mov edx, dword [esi + 4]
lea ecx, [edi*4]
push ecx
push edx
call fcn.005306f5
add esp, 8
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push ebx
mov dword [ecx + eax*4], 0xffffffff
mov ebp, dword [esi + 8]
inc ebp
mov dword [esi + 8], ebp
mov esi, dword [esp + 0x14]
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx]
test eax, eax
jne 0x502f8a
mov esi, dword [esp + 0x74]
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.00503000
lea ecx, [esp + 0x38]
call fcn.0050b860
lea ecx, [esp + 0x28]
call fcn.0050b860
lea ecx, [esp + 0x18]
call fcn.0050b860
jmp 0x502fde
mov edi, dword [esp + 0x78]
mov eax, dword [ebx + 0x30]
cmp eax, edi
je 0x502fbc
mov ecx, dword [esi]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
test eax, eax
je 0x502f5e
mov eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x38]
cmp ecx, eax
jne 0x502fb0
cmp eax, dword [ebx + 0x30]
je 0x502f5e
mov ecx, dword [ebx + 0x30]
mov eax, ecx
mov dword [ebx + 0x38], ecx
cmp eax, edi
jne 0x502f95
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x30]
mov dword [edx + 8], eax
mov ecx, dword [esi + 8]
mov esi, dword [esp + 0x74]
push ecx
push ebx
mov ecx, esi
call fcn.00503000
lea ecx, [esp + 0x18]
call fcn.00502380
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 0x10