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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b71f0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
push ebx
push esi
push edi
mov eax, dword [0x4e70ac]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x1c], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00468680
lea eax, [esp + 0x14]
push eax
call fcn.00478580
add esp, 4
mov eax, dword [eax]
xor ebx, ebx
mov dword [esp + 0xc8], ebx
cmp eax, ebx
je 0x4797d1
mov eax, dword [eax]
jmp 0x4797d3
xor eax, eax
lea ecx, [edi + 0x84]
push ecx
push eax
push esi
call fcn.004609c0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc8], 0xffffffff
cmp eax, ebx
je 0x479831
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x479831
cmp esi, ebx
je 0x479831
mov eax, dword [esi]
cmp eax, ebx
je 0x479818
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x479828
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
lea edx, [esp + 0x14]
push edx
call fcn.004785c0
add esp, 4
mov eax, dword [eax]
mov dword [esp + 0xc8], 1
cmp eax, ebx
je 0x479853
mov eax, dword [eax]
jmp 0x479855
xor eax, eax
lea ecx, [edi + 0x8c]
push ecx
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004609c0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov dword [esp + 0xc8], 0xffffffff
cmp eax, ebx
je 0x4798b6
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, ebx
jne 0x4798b6
cmp esi, ebx
je 0x4798b6
mov eax, dword [esi]
cmp eax, ebx
je 0x47989d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x4798ad
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
mov ecx, edi
call fcn.004684c0
test eax, eax
je 0x4798df
lea ecx, [esp + 0x3c]
push ecx
mov ecx, edi
call fcn.004684c0
mov ecx, eax
add ecx, 4
call fcn.00452480
push eax
mov ecx, edi
call fcn.00468500
push 0x4c0eb6
lea ecx, [esp + 0x14]
call fcn.004524b0
push 4
mov dword [esp + 0xcc], 2
call fcn.00418b17
add esp, 4
cmp eax, ebx
je 0x47990e
lea edx, [esp + 0x64]
mov dword [eax], edx
jmp 0x479910
xor eax, eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0xd0], 3
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00460bf0
add esp, 8
cmp eax, ebx
je 0x479dfc
xor edi, edi
mov dword [esp + 0x28], edi
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push edx
mov byte [esp + 0xd0], 4
call eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.004785a0
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
add esp, 4
cmp ecx, eax
jne 0x47998f
xor eax, eax
jmp 0x4799d7
cmp ecx, edi
jne 0x4799b1
cmp eax, edi
je 0x4799a8
mov eax, dword [eax]
cmp eax, edi
je 0x4799a8
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, edi
jne 0x4799ac
xor eax, eax
jmp 0x4799d7
or eax, 0xffffffff
jmp 0x4799d7
cmp eax, edi
jne 0x4799d1
mov ecx, dword [ecx]
cmp ecx, edi
je 0x4799c6
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, edi
jne 0x4799ca
xor eax, eax
jmp 0x4799d7
mov eax, 1
jmp 0x4799d7
push eax
call fcn.00452940
cmp eax, edi
mov eax, dword [esp + 0x2c]
sete bl
cmp eax, edi
je 0x479a22
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x479a1e
cmp esi, edi
je 0x479a1e
mov eax, dword [esi]
cmp eax, edi
je 0x479a05
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x479a15
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
mov dword [esp + 0x2c], edi
test bl, bl
je 0x479d8f
push 0x4bae08
lea ecx, [esp + 0x14]
call fcn.0044e7c0
lea edx, [esp + 0x30]
push edx
call fcn.00478470
add esp, 4
mov eax, dword [eax]
mov byte [esp + 0xc8], 5
cmp eax, edi
je 0x479a57
mov eax, dword [eax]
jmp 0x479a59
xor eax, eax
lea ecx, [esp + 0x10]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004609c0
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0xc8], 4
cmp eax, edi
je 0x479aba
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x479ab6
cmp esi, edi
je 0x479ab6
mov eax, dword [esi]
cmp eax, edi
je 0x479a9d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x479aad
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
mov dword [esp + 0x30], edi
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x479d9d
mov ecx, dword [eax]
xor edi, edi
cmp ecx, edi
je 0x479b4c
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, edi
jbe 0x479b48
lea ecx, [esp + 0x64]
call fcn.0046ba20
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.00460bf0
add esp, 8
cmp eax, edi
je 0x479b3b
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
mov ecx, esi
call fcn.00477e20
mov dword [esp + 0x18], eax
cmp eax, edi
je 0x479b2a
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x68]
call fcn.00466620
lea ecx, [esp + 0x34]
push ecx
call fcn.00460c10
add esp, 4
cmp eax, edi
jne 0x479b08
lea edx, [esp + 0x34]
push edx
call fcn.00460c30
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, edi
je 0x479d9d
mov eax, dword [eax]
test eax, eax
je 0x479d9d
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x479d9d
push 4
call fcn.00418b17
xor esi, esi
add esp, 4
cmp eax, esi
je 0x479b85
lea ecx, [esp + 0x44]
mov dword [eax], ecx
jmp 0x479b87
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov eax, dword [esp + 0x10]
mov byte [esp + 0xc8], 6
cmp eax, esi
je 0x479baf
mov eax, dword [eax]
jmp 0x479bb1
xor eax, eax
lea edx, [esp + 0x44]
push edx
push 0x4c5850
push eax
call fcn.00464f40
mov ecx, dword [esp + 0x6c]
add esp, 0xc
mov dword [esp + 0x18], esi
cmp ecx, esi
jbe 0x479d67
mov eax, dword [esp + 0x5c]
add ecx, eax
mov esi, eax
cmp eax, ecx
jbe 0x479be5
call fcn.00436578
mov eax, dword [esp + 0x44]
mov edi, eax
mov ebx, edi
mov dword [esp + 0xac], esi
test eax, eax
jne 0x479c19
call fcn.00436578
xor eax, eax
xor ecx, ecx
mov ecx, dword [ecx + 0x1c]
mov edx, dword [esp + 0x18]
add ecx, dword [eax + 0x18]
add esi, edx
cmp esi, ecx
ja 0x479c26
test edi, edi
je 0x479c1f
mov edi, dword [edi]
jmp 0x479c21
mov eax, dword [eax]
mov ecx, eax
jmp 0x479c01
xor edi, edi
cmp esi, dword [edi + 0x18]
jae 0x479c2b
call fcn.00436578
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], esi
call fcn.00410e10
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x18]
call fcn.0040d4f0
mov esi, dword [esp + 0x14]
mov dword [esp + 0x84], esi
test esi, esi
je 0x479c61
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xcc], 8
call fcn.00479040
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0xb4]
push edx
add ecx, 0x64
mov byte [esp + 0xd0], 9
call fcn.00479630
lea ecx, [esp + 0x88]
call fcn.0046ba20
mov eax, dword [esp + 0x88]
push eax
call fcn.00418b46
mov eax, dword [esp + 0x88]
add esp, 4
test eax, eax
je 0x479d0a
mov edi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x479cff
test edi, edi
je 0x479cff
mov eax, dword [edi]
test eax, eax
je 0x479ce6
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [edi + 4]
test eax, eax
je 0x479cf6
push eax
call fcn.00418b46
add esp, 4
push edi
call fcn.00418b46
add esp, 4
mov dword [esp + 0x84], 0
mov byte [esp + 0xc8], 6
test esi, esi
je 0x479d52
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x479d4a
mov eax, dword [esi]
test eax, eax
je 0x479d31
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x479d41
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x479bd4
lea ecx, [esp + 0x44]
mov byte [esp + 0xc8], 0xa
call fcn.00464d50
mov edx, dword [esp + 0x44]
push edx
mov byte [esp + 0xcc], 4
call fcn.00418b46
add esp, 4
jmp 0x479d9d
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
call fcn.00477e20
lea ecx, [esp + 0x20]
push ecx
call fcn.00460c10
mov esi, dword [esp + 0x2c]
add esp, 4
mov edi, eax
mov byte [esp + 0xc8], 3
test esi, esi
je 0x479df4
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x479df4
test esi, esi
je 0x479df4
mov eax, dword [esi]
test eax, eax
je 0x479ddb
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x479deb
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
test edi, edi
jne 0x479950
lea eax, [esp + 0x20]
push eax
call fcn.00460c30
mov edi, dword [esp + 0x20]
mov eax, dword [edi + 0x8c]
lea esi, [edi + 0x8c]
add esp, 4
test eax, eax
je 0x479e36
mov eax, dword [eax]
test eax, eax
je 0x479e36
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x479e36
push esi
mov ecx, edi
call fcn.004787e0
lea ecx, [esp + 0x64]
call fcn.0046ba20
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00418b46
mov esi, dword [esp + 0x14]
add esp, 4
test esi, esi
je 0x479e8c
lea edx, [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x479e8c
test esi, esi
je 0x479e8c
mov eax, dword [esi]
test eax, eax
je 0x479e73
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
test eax, eax
je 0x479e83
push eax
call fcn.00418b46
add esp, 4
push esi
call fcn.00418b46
add esp, 4
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4