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

Disassembly:
push 0xffffffffffffffff
push 0x8720ca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
mov eax, dword [0x98b454]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x118], ebx
mov dword [esp + 0x34], eax
push 0x1151
lea ecx, [esp + 0x30]
mov byte [esp + 0x11c], 1
call fcn.008325e8
push 0x1152
lea ecx, [esp + 0x38]
call fcn.008325e8
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
push eax
push edx
lea ecx, [esi + 0x790]
push 1
call fcn.005e3200
mov ecx, dword [0x9667c8]
xor eax, eax
cmp ecx, ebx
mov dword [esp + 0x38], eax
jle 0x542bdd
push ebp
push edi
mov ebp, 2
jmp 0x5421de
mov eax, dword [esp + 0x40]
mov ebp, 2
lea ecx, [eax*8]
lea edi, [esp + 0x50]
sub ecx, eax
push 0x9b5220
lea esi, [ecx*4 + 0x966720]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x18]
call fcn.00831f5f
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0x14]
push edx
mov byte [esp + 0x124], 2
call fcn.008325e8
push 0x9b5220
lea ecx, [esp + 0x24]
call fcn.00831f5f
lea eax, [esp + 0x6c]
mov byte [esp + 0x120], 3
push eax
call fcn.005f121f
push 0x9b5220
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], ebp
call fcn.00831f5f
mov eax, dword [esp + 0x68]
mov byte [esp + 0x120], 4
cmp eax, ebx
je 0x542269
push eax
lea ecx, [esp + 0x30]
call fcn.008325e8
mov eax, dword [esp + 0x50]
cmp eax, 9
ja case.default.0x542276
jmp dword [eax*4 + 0x542c30]
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x24]
call fcn.008325e8
push 0x90
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x120], 5
je 0x542304
mov eax, dword [esp + 0x20]
mov word [esp + 0xc0], 8
push eax
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0xc8], eax
jne 0x5422da
cmp edi, ebx
je 0x5422da
push 0x8007000e
call fcn.006a9910
or dword [esp + 0x10], 1
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xd0]
push ebx
lea eax, [esp + 0x28]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x13c], 6
call fcn.005e32d0
mov esi, eax
jmp 0x542306
xor esi, esi
mov al, byte [esp + 0x10]
mov ebp, esi
test al, 1
mov dword [esp + 0x120], 4
je 0x54233e
mov edi, dword [esp + 0x10]
lea ecx, [esp + 0xc0]
and edi, 0xfffffffe
push ecx
mov dword [esp + 0x14], edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x54233e
push eax
call fcn.006a9910
mov edx, dword [esp + 0x18]
push ebx
push esi
lea ecx, [edx + 0x790]
call fcn.005e23d0
jmp 0x542b54
push 0x90
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x5423ad
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
or edi, ebp
mov word [esp + 0xe0], 3
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x10], edi
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0xf0]
push ebx
lea ecx, [esp + 0x28]
push edx
push ecx
mov ecx, eax
mov byte [esp + 0x13c], 9
call fcn.005e32d0
mov esi, eax
jmp 0x5423af
xor esi, esi
mov al, byte [esp + 0x10]
mov ebp, esi
test al, 2
mov dword [esp + 0x120], 4
je 0x5423e6
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xe0]
and al, 0xfd
push edx
mov dword [esp + 0x14], eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x5423e6
push eax
call fcn.006a9910
mov eax, dword [esp + 0x18]
push ebx
push esi
lea ecx, [eax + 0x790]
call fcn.005e23d0
jmp 0x542b54
push 0x90
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x120], 0xb
je 0x542616
mov ecx, dword [esp + 0x5c]
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x28]
push ecx
push edx
mov ecx, eax
call fcn.005e38a0
jmp 0x542618
mov edi, dword [esp + 0x5c]
push 0x98
cmp edi, ebx
jne 0x54245b
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x120], 0xc
jmp 0x5424bd
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x120], 0xd
je 0x542521
push edi
call fcn.00540fe0
fstp qword [esp + 0x110]
add esp, 4
mov dword [esp + 0x114], ebx
lea eax, [esp + 0x10c]
push ebx
push ebx
push ebx
jmp 0x542512
mov edi, dword [esp + 0x5c]
push 0x98
cmp edi, ebx
jne 0x5424d7
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x120], 0xe
cmp eax, ebx
je 0x542521
push ebx
push ebx
lea ecx, [esp + 0x74]
push ebx
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, eax
call fcn.005e3e10
jmp 0x542523
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
cmp esi, ebx
mov byte [esp + 0x120], 0xf
je 0x542521
push edi
call fcn.00541060
fstp qword [esp + 0xf4]
add esp, 4
mov dword [esp + 0xf8], ebx
lea eax, [esp + 0xf0]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.005e3e10
jmp 0x542523
xor eax, eax
mov edx, dword [esp + 0x18]
mov ebp, eax
push ebx
push ebp
lea ecx, [edx + 0x790]
mov byte [esp + 0x128], 4
call fcn.005e23d0
jmp 0x542b54
push 0x98
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x10
je 0x542616
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
call fcn.00552ce0
jmp 0x542618
push 0x98
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x11
je 0x5425ae
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
call fcn.005e4590
jmp 0x5425b0
xor eax, eax
cmp eax, ebx
mov byte [esp + 0x120], 4
mov ebp, eax
je 0x5425ce
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0xc78]
mov dword [eax + 0x90], ecx
mov edx, dword [esp + 0x18]
push ebx
push eax
lea ecx, [edx + 0x790]
call fcn.005e23d0
jmp 0x542b54
push 0x90
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x12
je 0x542616
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
call fcn.005e4170
jmp 0x542618
xor eax, eax
push ebx
mov ebp, eax
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x128], 4
lea ecx, [eax + 0x790]
call fcn.005e23d0
jmp 0x542b54
push 0x90
call fcn.008325b4
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x13
je 0x54266a
push ebx
lea ecx, [esp + 0x24]
push ebx
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, eax
call fcn.005e4380
jmp 0x54266c
xor eax, eax
push ebx
mov ebp, eax
push eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x128], 4
lea ecx, [eax + 0x790]
call fcn.005e23d0
mov eax, 1
mov dword [esp + 0x78], 0x11f6
mov dword [esp + 0x8c], eax
mov dword [esp + 0x98], eax
mov eax, 2
mov dword [esp + 0x7c], 0x1b
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], 0x11f9
mov dword [esp + 0x88], 0x1c
mov dword [esp + 0x90], 0x204b
mov dword [esp + 0x94], 0x1d
mov dword [esp + 0x9c], 0x204c
mov dword [esp + 0xa0], 0x1e
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], 0x204d
mov dword [esp + 0xac], 0x1f
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 0x204e
mov dword [esp + 0xb8], 0x20
mov dword [esp + 0xbc], eax
lea edi, [esp + 0x80]
mov dword [esp + 0x1c], 6
push 0x9b5220
lea ecx, [esp + 0x2c]
call fcn.00831f5f
mov ecx, dword [edi - 8]
mov byte [esp + 0x120], 0x14
push ecx
lea ecx, [esp + 0x2c]
call fcn.008325e8
mov eax, dword [edi]
cmp eax, 1
jne 0x5427c6
push 0x98
call fcn.008325b4
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x15
je 0x5427b5
push ebx
lea edx, [esp + 0x4c]
push ebx
lea ecx, [esp + 0x30]
push edx
push ecx
mov ecx, eax
mov dword [esp + 0x58], ebx
call fcn.005e49e0
mov byte [esp + 0x120], 0x14
mov esi, eax
jmp 0x5428b7
xor eax, eax
mov byte [esp + 0x120], 0x14
mov esi, eax
jmp 0x5428b7
cmp eax, 2
push 0x90
jne 0x542809
call fcn.008325b4
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x16
je 0x5427b5
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x3c]
push ebx
push edx
mov ecx, eax
call fcn.005e38a0
mov byte [esp + 0x120], 0x14
mov esi, eax
jmp 0x5428b7
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
mov byte [esp + 0x120], 0x17
je 0x54287e
push 0x9b5220
mov word [esp + 0x100], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0x104], eax
jne 0x542856
mov eax, 0x9b5220
test eax, eax
je 0x542856
push 0x8007000e
call fcn.006a9910
or dword [esp + 0x10], 4
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x10c]
push ebx
lea edx, [esp + 0x3c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x13c], 0x18
call fcn.005e32d0
jmp 0x542880
xor eax, eax
mov esi, eax
mov al, byte [esp + 0x10]
test al, 4
mov dword [esp + 0x120], 0x14
je 0x5428b7
mov eax, dword [esp + 0x10]
and al, 0xfb
mov dword [esp + 0x10], eax
lea eax, [esp + 0xfc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x5428b7
push eax
call fcn.006a9910
cmp esi, ebx
je 0x5428e9
mov ecx, dword [esp + 0x18]
mov eax, dword [edi - 4]
push ebx
push esi
add ecx, 0x790
mov dword [esi + 0x1c], eax
call fcn.005e23d0
push 1
mov ecx, esi
call fcn.005cd820
push ebx
mov ecx, esi
mov dword [eax + 0x98], ebx
call fcn.005cdd20
lea ecx, [esp + 0x28]
mov byte [esp + 0x120], 4
call fcn.00831eeb
mov eax, dword [esp + 0x1c]
add edi, 0xc
dec eax
mov dword [esp + 0x1c], eax
jne 0x542748
jmp 0x542b54
push 0x90
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
mov byte [esp + 0x120], 0x1a
je 0x542962
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x44]
push edx
call fcn.00831f5f
or dword [esp + 0x10], 8
push ebx
lea eax, [esp + 0x48]
push ebx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x130], 0x1b
call fcn.005e47d0
mov esi, eax
jmp 0x542964
xor esi, esi
mov al, byte [esp + 0x10]
mov ebp, esi
test al, 8
mov dword [esp + 0x120], 4
je 0x54298c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x44]
and al, 0xf7
mov dword [esp + 0x10], eax
call fcn.00831eeb
mov edx, dword [esp + 0x18]
push ebx
push esi
lea edi, [edx + 0x790]
mov ecx, edi
call fcn.005e23d0
push 0x9b5220
lea ecx, [esp + 0x34]
call fcn.00831f5f
push 0x204f
lea ecx, [esp + 0x34]
mov byte [esp + 0x124], 0x1d
call fcn.008325e8
push 0x98
call fcn.008325b4
add esp, 4
mov dword [esp + 0x24], eax
cmp eax, ebx
mov byte [esp + 0x120], 0x1e
je 0x5429fb
push ebx
lea ecx, [esp + 0x50]
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, eax
mov dword [esp + 0x5c], ebx
call fcn.005e49e0
mov esi, eax
jmp 0x5429fd
xor esi, esi
cmp esi, ebx
mov byte [esp + 0x120], 0x1d
je 0x542a30
push ebx
push esi
mov ecx, edi
mov dword [esi + 0x1c], 0x22
call fcn.005e23d0
push 1
mov ecx, esi
call fcn.005cd820
push ebx
mov ecx, esi
mov dword [eax + 0x98], ebx
call fcn.005cdd20
lea ecx, [esp + 0x30]
mov byte [esp + 0x120], 4
call fcn.00831eeb
push 0x9b5220
lea ecx, [esp + 0x3c]
call fcn.00831f5f
push 0x2050
lea ecx, [esp + 0x3c]
mov byte [esp + 0x124], 0x1f
call fcn.008325e8
push 0x90
call fcn.008325b4
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
cmp esi, ebx
mov byte [esp + 0x120], 0x20
je 0x542ae1
push 0x94d4cc
mov word [esp + 0xd4], 8
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
cmp eax, ebx
mov dword [esp + 0xd8], eax
jne 0x542ab7
mov eax, 0x94d4cc
test eax, eax
je 0x542ab7
push 0x8007000e
call fcn.006a9910
or dword [esp + 0x10], 0x10
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0xe0]
push ebx
lea edx, [esp + 0x4c]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x13c], 0x21
call fcn.005e32d0
mov esi, eax
jmp 0x542ae3
xor esi, esi
mov al, byte [esp + 0x10]
mov dword [esp + 0x120], 0x1f
test al, 0x10
je 0x542b18
mov eax, dword [esp + 0x10]
and al, 0xef
mov dword [esp + 0x10], eax
lea eax, [esp + 0xd0]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
cmp eax, ebx
jge 0x542b18
push eax
call fcn.006a9910
cmp esi, ebx
je 0x542b43
push ebx
push esi
mov ecx, edi
mov dword [esi + 0x1c], 0x23
call fcn.005e23d0
push 1
mov ecx, esi
call fcn.005cd820
push ebx
mov ecx, esi
mov dword [eax + 0x98], ebx
call fcn.005cdd20
lea ecx, [esp + 0x38]
mov byte [esp + 0x120], 4
call fcn.00831eeb
mov eax, dword [esp + 0x2c]
cmp dword [eax - 8], ebx
je 0x542b66
push ebx
push eax
mov ecx, ebp
call fcn.005e37b0
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x58]
cmp dword [ecx + 0xc28], ebx
je 0x542b7e
cmp esi, 0x25
je 0x542b7e
push ebx
jmp 0x542b83
mov edx, dword [esp + 0x60]
push edx
mov ecx, ebp
call fcn.005cdd20
mov dword [ebp + 0x1c], esi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x120], 3
call fcn.00831eeb
lea ecx, [esp + 0x20]
mov byte [esp + 0x120], 2
call fcn.00831eeb
lea ecx, [esp + 0x14]
mov byte [esp + 0x120], 1
call fcn.00831eeb
mov eax, dword [esp + 0x40]
mov ecx, dword [0x9667c8]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x5421d5
mov esi, dword [esp + 0x18]
pop edi
pop ebp
cmp dword [esi + 0xc28], ebx
je 0x542bf3
push ebx
push 1
lea ecx, [esi + 0x8c]
call fcn.0044d7e0
lea ecx, [esp + 0x34]
mov byte [esp + 0x118], bl
call fcn.00831eeb
lea ecx, [esp + 0x2c]
mov dword [esp + 0x118], 0xffffffff
call fcn.00831eeb
mov ecx, dword [esp + 0x110]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret