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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b02fe
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x3c], edi
call fcn.00549590
xor esi, esi
mov dword [esp + 0x48], eax
cmp eax, esi
je 0x51fad0
lea ecx, [esp + 0x98]
call fcn.00591d82
lea eax, [esp + 0x14]
push eax
mov ecx, edi
mov dword [esp + 0xe4], esi
call fcn.0051cb80
mov eax, dword [eax]
cmp eax, esi
je 0x51ed44
mov eax, dword [eax]
jmp 0x51ed46
xor eax, eax
push 6
push eax
push str.res:__
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.00420fb0
lea ecx, [esp + 0x1c]
test bl, bl
je 0x51f10a
push ecx
mov ecx, edi
call fcn.0051cb80
mov eax, dword [eax]
mov byte [esp + 0xe0], 1
cmp eax, esi
je 0x51ed88
mov eax, dword [eax]
jmp 0x51ed8a
xor eax, eax
mov ecx, dword [esp + 0x3c]
push str.res:__
push eax
add ecx, 0xd0
push esi
mov dword [esp + 0x50], ecx
call fcn.00552a20
mov edi, eax
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xe0], 0
cmp eax, esi
je 0x51edf4
mov ebx, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
jne 0x51edf0
cmp ebx, esi
je 0x51edf0
mov eax, dword [ebx]
cmp eax, esi
je 0x51edd7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x51ede7
push eax
call fcn.004a3d2b
add esp, 4
push ebx
call fcn.004a3d15
add esp, 4
mov dword [esp + 0x1c], esi
cmp edi, esi
je 0x51f236
push edi
lea ecx, [esp + 0x50]
call fcn.00552e70
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x14]
push edx
call fcn.0051cb80
mov eax, dword [eax]
mov byte [esp + 0xe0], 3
cmp eax, esi
je 0x51ee26
mov eax, dword [eax]
jmp 0x51ee28
xor eax, eax
mov edx, dword [edi]
push 0x5e8ee8
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test eax, eax
mov eax, dword [esp + 0x14]
sete byte [esp + 0x1b]
mov byte [esp + 0xe0], 2
cmp eax, esi
je 0x51ee88
mov ebx, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, esi
jne 0x51ee88
cmp ebx, esi
je 0x51ee88
mov eax, dword [ebx]
cmp eax, esi
je 0x51ee6f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 4]
cmp eax, esi
je 0x51ee7f
push eax
call fcn.004a3d2b
add esp, 4
push ebx
call fcn.004a3d15
add esp, 4
cmp byte [esp + 0x1b], 0
je 0x51eea5
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0
call fcn.00552e90
jmp 0x51f236
mov ebx, dword [esp + 0x48]
mov edx, dword [edi]
mov eax, dword [edx + 0x18]
push ebx
push 0x5db364
mov ecx, edi
call eax
test eax, eax
jne 0x51eed1
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], al
call fcn.00552e90
jmp 0x51f236
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], esi
mov edx, dword [ebx]
mov edx, dword [edx + 0xc]
lea eax, [esp + 0x30]
push eax
mov ecx, ebx
call edx
cmp eax, esi
je 0x51f0f4
lea eax, [esp + 0x2c]
push eax
call fcn.00529790
mov ecx, dword [esp + 0x48]
add esp, 4
push edi
mov dword [esp + 0x18], eax
call fcn.00552e30
mov ebx, dword [eax]
mov edx, dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, edi
add ebx, 0x10
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx]
push eax
call edx
cmp dword [esp + 0x14], esi
je 0x51f0e7
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
push 0x5e95a9
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe4], 4
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], esi
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x70]
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x74]
call fcn.0051c3c0
push 0x5e95a9
lea ecx, [esp + 0x78]
call fcn.0051c3c0
push 0x5c0e8c
lea ecx, [esp + 0x7c]
call fcn.0051c480
mov eax, dword [esp + 0x20]
push 0x5e95a9
lea ecx, [esp + 0x60]
mov dword [esp + 0x80], 0xc
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], esi
call fcn.0051c3c0
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x30]
push 0x5db360
push edx
call fcn.005296e0
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x3c]
push str.code
push ecx
call fcn.00529580
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x48]
push str.file
push eax
call fcn.005296e0
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x54]
push str.name
push edx
call fcn.005296e0
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x60]
push str.lang_name
push ecx
call fcn.005296e0
lea edx, [esp + 0xb4]
push edx
lea eax, [esp + 0x6c]
push str.font_name
push eax
call fcn.005296e0
add esp, 0x48
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x30]
push str.font_px
push edx
call fcn.00529580
add esp, 0xc
cmp dword [esp + 0x64], esi
je 0x51f0bf
mov eax, dword [esp + 0x58]
cmp eax, esi
je 0x51f0bf
mov eax, dword [eax]
cmp eax, esi
je 0x51f0bf
push eax
call ebx
cmp eax, esi
jbe 0x51f0bf
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x51f0bf
mov eax, dword [eax]
cmp eax, esi
je 0x51f0bf
push eax
call ebx
cmp eax, esi
jbe 0x51f0bf
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x58]
push eax
call fcn.0051e250
lea ecx, [esp + 0x2c]
push ecx
call fcn.005297d0
add esp, 4
lea ecx, [esp + 0x58]
mov edi, eax
mov byte [esp + 0xe0], 2
call fcn.0051c970
cmp edi, esi
jne 0x51ef39
lea edx, [esp + 0x2c]
push edx
call fcn.00529810
add esp, 4
lea ecx, [esp + 0x4c]
mov byte [esp + 0xe0], 0
call fcn.00552e90
jmp 0x51f236
push 0x5bf344
call fcn.0051ab80
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.0051cb80
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, eax
mov byte [esp + 0xe8], 6
call fcn.0051c5d0
mov eax, dword [eax]
mov byte [esp + 0xe0], 7
cmp eax, esi
je 0x51f14b
mov eax, dword [eax]
jmp 0x51f14d
xor eax, eax
push esi
push eax
lea ecx, [esp + 0xa0]
call fcn.00591e1a
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00420fb0
lea ecx, [esp + 0x20]
call fcn.00420fb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 0
call fcn.00420fb0
cmp edi, esi
je 0x51f236
jmp 0x51f190
lea ecx, [esp + 0x98]
call fcn.00591bee
lea ecx, [esp + 0x98]
mov dword [esp + 0x20], eax
call fcn.00591d43
test eax, eax
jne 0x51f22c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x9c]
call fcn.005920aa
mov edi, eax
mov ebx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.0051cb80
mov eax, dword [eax]
mov edi, dword [edi]
mov byte [esp + 0xe0], 9
cmp eax, esi
je 0x51f1e7
mov eax, dword [eax]
jmp 0x51f1e9
xor eax, eax
mov edx, dword [esp + 0x48]
push edi
push eax
mov eax, dword [ebp + 8]
push edx
push eax
mov ecx, ebx
call fcn.0051e6f0
lea ecx, [esp + 0x14]
call fcn.00420fb0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xe0], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f22c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x20], esi
jne 0x51f190
lea ecx, [esp + 0x98]
call fcn.00591b08
push 0x5bf344
lea ecx, [esp + 0x20]
call fcn.0051ab80
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0051cbb0
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
push ecx
mov ecx, eax
mov byte [esp + 0xe8], 0xb
call fcn.0051c5d0
mov eax, dword [eax]
mov byte [esp + 0xe0], 0xc
cmp eax, esi
je 0x51f289
mov eax, dword [eax]
jmp 0x51f28b
xor eax, eax
push esi
push eax
lea ecx, [esp + 0xa0]
call fcn.00591e1a
lea ecx, [esp + 0x14]
mov edi, eax
call fcn.00420fb0
lea ecx, [esp + 0x20]
call fcn.00420fb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe0], 0
call fcn.00420fb0
cmp edi, esi
je 0x51faac
lea ecx, [esp + 0x58]
call fcn.0051c0e0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x1c]
mov byte [esp + 0xe0], 0xd
cmp eax, esi
jbe 0x51f340
mov edi, dword [ebx + 0x18]
lea edx, [edi + eax]
cmp edi, edx
jbe 0x51f2f0
call fcn.004e73ca
mov eax, dword [ebx]
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edi
call fcn.0051a6f0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x88], eax
call fcn.0051a620
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x18], eax
call fcn.0051e2b0
mov eax, dword [ebx + 0x1c]
inc esi
cmp esi, eax
jb 0x51f2e1
lea ecx, [esp + 0x98]
call fcn.00591bee
lea ecx, [esp + 0x98]
mov dword [esp + 0x2c], eax
call fcn.00591d43
test eax, eax
jne 0x51fa83
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x51fae8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0xe0], 0xe
call fcn.004a581f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x51fae8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0xb0]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe4], 0xf
call fcn.005920aa
mov edi, eax
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov byte [esp + 0xe0], 0x10
jge 0x51f400
push 0x100
lea ecx, [esp + 0x20]
call fcn.0040c000
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, 0x104
or eax, ecx
jge 0x51f426
push 0x104
lea ecx, [esp + 0x24]
call fcn.0040c000
mov ebx, dword [esp + 0x20]
mov eax, dword [edi]
push esi
push ebx
push 0
push 0
push eax
call fcn.0059887d
mov eax, dword [esp + 0xc4]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0xe0], 0xf
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51f462
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.004e662e
add esp, 8
test eax, eax
jl 0x51faf2
cmp eax, dword [ebx - 8]
jg 0x51faf2
mov dword [ebx - 0xc], eax
xor ecx, ecx
mov word [ebx + eax*2], cx
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004e662e
add esp, 8
test eax, eax
jl 0x51faf2
cmp eax, dword [esi - 8]
jg 0x51faf2
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
mov eax, dword [esp + 0x98]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x9c]
call edx
mov ecx, dword [esp + 0x3c]
push esi
push ebx
add ecx, 0xd0
push eax
mov dword [esp + 0x50], ecx
call fcn.00552a20
mov edi, eax
test edi, edi
je 0x51fa3b
push edi
lea ecx, [esp + 0x8c]
call fcn.00552e70
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x9c]
mov byte [esp + 0xe4], 0x11
call fcn.005920aa
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x40]
call fcn.0051cbb0
mov eax, dword [eax]
mov edx, dword [esp + 0x24]
mov ecx, dword [edx]
mov byte [esp + 0xe0], 0x13
test eax, eax
je 0x51f538
mov eax, dword [eax]
jmp 0x51f53a
xor eax, eax
mov edx, dword [edi]
push ecx
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test eax, eax
mov eax, dword [esp + 0x14]
sete byte [esp + 0x1b]
test eax, eax
je 0x51f5a4
mov dword [esp + 0x24], eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x51f59c
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x51f59c
mov eax, dword [ecx]
test eax, eax
je 0x51f57f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x51f58f
push ecx
call fcn.004a3d2b
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004a3d15
add esp, 4
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0xb8]
add eax, 0xfffffff0
mov byte [esp + 0xe0], 0x11
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x51f5cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x1b], 0
je 0x51f63b
lea ecx, [esp + 0x88]
mov byte [esp + 0xe0], 0xf
call fcn.00552e90
add esi, 0xfffffff0
mov byte [esp + 0xe0], 0xe
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f60e
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebx, 0xfffffff0
mov byte [esp + 0xe0], 0xd
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fa83
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
jmp 0x51fa83
mov eax, dword [esp + 0x48]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
push 0x5db364
mov ecx, edi
call edx
test eax, eax
je 0x51fa27
mov ecx, dword [esp + 0x48]
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
lea edx, [esp + 0x38]
push edx
call eax
test eax, eax
je 0x51fa27
lea ecx, [esp + 0x34]
push ecx
call fcn.00529790
mov ecx, dword [esp + 0x48]
add esp, 4
push edi
mov dword [esp + 0x28], eax
call fcn.00552e30
mov edx, dword [edi]
mov ebx, eax
mov esi, dword [ebx]
mov eax, dword [edx + 0x14]
mov ecx, edi
mov dword [esp + 0x44], ebx
add esi, 0x10
call eax
mov edx, dword [esi]
push eax
mov ecx, ebx
call edx
cmp dword [esp + 0x24], 0
je 0x51fa12
lea ecx, [ecx]
push 0x5e95a9
lea ecx, [esp + 0x44]
call fcn.00439ab0
push 0x5e95a9
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 0x14
mov dword [esp + 0x58], 0
call fcn.00439ab0
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x38]
push 0x5db360
push ecx
mov byte [esp + 0xec], 0x15
call fcn.005296e0
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x44]
push str.code
push eax
call fcn.00529580
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x50]
push str.file
push edx
call fcn.005296e0
mov eax, dword [esp + 0x64]
add esp, 0x24
test eax, eax
je 0x51f965
mov eax, dword [eax]
test eax, eax
je 0x51f965
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x51f965
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51f965
mov eax, dword [eax]
test eax, eax
je 0x51f965
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x51f965
mov esi, dword [esp + 0x74]
add esi, 0xffffffff
js 0x51f965
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
mov edi, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
add eax, edi
cmp edi, eax
jbe 0x51f7a3
call fcn.004e73ca
mov eax, dword [esp + 0x58]
push esi
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], edi
call fcn.0051a5c0
mov ecx, dword [esp + 0x90]
mov edx, dword [esp + 0x94]
mov dword [esp + 0xc4], ecx
lea ecx, [esp + 0xc4]
mov dword [esp + 0xc8], edx
call fcn.0051a530
mov eax, dword [eax]
mov ecx, dword [eax]
mov eax, dword [esp + 0x40]
cmp ecx, eax
je 0x51f826
test ecx, ecx
jne 0x51f809
test eax, eax
je 0x51f826
mov eax, dword [eax]
test eax, eax
je 0x51f826
push eax
call ebx
jmp 0x51f81e
test eax, eax
jne 0x51f818
mov ecx, dword [ecx]
test ecx, ecx
je 0x51f826
push ecx
call ebx
jmp 0x51f81e
push eax
call fcn.004394d0
test eax, eax
jne 0x51f95c
cmp dword [esp + 0x54], 0
je 0x51f846
push esi
lea ecx, [esp + 0x5c]
call fcn.0051c150
mov eax, dword [eax]
mov ecx, dword [esp + 0x54]
cmp ecx, dword [eax + 0xc]
jne 0x51f95c
lea edx, [esp + 0xb4]
push edx
lea ecx, [esp + 0x9c]
call fcn.005920aa
mov edi, dword [eax]
push esi
lea ecx, [esp + 0x5c]
mov byte [esp + 0xe4], 0x16
call fcn.0051c150
mov ecx, dword [eax]
push edi
add ecx, 8
call fcn.0051c480
mov eax, dword [esp + 0xb4]
add eax, 0xfffffff0
mov byte [esp + 0xe0], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51f8a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
lea ecx, [esp + 0x5c]
call fcn.0051c150
mov edi, dword [eax]
add edi, 0x14
lea ecx, [esp + 0x28]
cmp edi, ecx
je 0x51f8da
mov ecx, edi
call fcn.00420110
mov edx, dword [esp + 0x28]
mov dword [edi], edx
mov eax, dword [esp + 0x28]
test eax, eax
je 0x51f8da
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push esi
lea ecx, [esp + 0x5c]
call fcn.0051c150
mov eax, dword [eax]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x2c], ecx
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x74]
add edx, eax
mov edi, eax
cmp eax, edx
jbe 0x51f902
call fcn.004e73ca
mov eax, dword [esp + 0x58]
push esi
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edi
call fcn.0051a5c0
mov edi, dword [esp + 0x4c]
mov ebx, dword [esp + 0x50]
push 1
lea ecx, [esp + 0xc0]
mov dword [esp + 0xc0], edi
mov dword [esp + 0xc4], ebx
call fcn.0051a5c0
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
push ebx
push edi
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x6c]
call fcn.0051dec0
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantInit]
sub esi, 1
jns 0x51f790
lea ecx, [esp + 0x34]
push ecx
call fcn.005297d0
mov ebx, eax
mov eax, dword [esp + 0x2c]
xor edi, edi
add esp, 4
cmp eax, edi
je 0x51f9bc
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x51f9b8
cmp esi, edi
je 0x51f9b8
mov eax, dword [esi]
cmp eax, edi
je 0x51f99f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x51f9af
push eax
call fcn.004a3d2b
add esp, 4
push esi
call fcn.004a3d15
add esp, 4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x40]
mov byte [esp + 0xe0], 0x11
cmp eax, edi
je 0x51fa0a
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp eax, edi
jne 0x51fa06
cmp esi, edi
je 0x51fa06
mov eax, dword [esi]
cmp eax, edi
je 0x51f9ed
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x51f9fd
push eax
call fcn.004a3d2b
add esp, 4
push esi
call fcn.004a3d15
add esp, 4
mov dword [esp + 0x40], edi
cmp ebx, edi
jne 0x51f6c0
lea edx, [esp + 0x34]
push edx
call fcn.00529810
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x88]
mov byte [esp + 0xe0], 0xf
call fcn.00552e90
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
mov byte [esp + 0xe0], 0xe
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51fa5f
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0xfffffff0
or edx, 0xffffffff
lea ecx, [ebx + 0xc]
mov byte [esp + 0xe0], 0xd
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x51fa83
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
cmp dword [esp + 0x2c], 0
jne 0x51f340
lea ecx, [esp + 0x58]
mov byte [esp + 0xe0], 0
call fcn.0051af80
mov eax, dword [esp + 0x58]
push eax
call fcn.004a3d15
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
call fcn.00549600
add esp, 4
lea ecx, [esp + 0x98]
mov dword [esp + 0xe0], 0xffffffff
call fcn.00591dab
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.0040b390
push 0x80070057
call fcn.0040b390
int3