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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
mov esi, dword [esp + 0x84]
push edi
mov edi, eax
lea eax, [esi + 0x247]
xor ebp, ebp
push eax
mov dword [esp + 0x24], ebp
mov byte [esp + 0x1b], 0
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x224]
cmp eax, ebp
je 0x61c69e
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push eax
call edx
mov byte [esi + 0x230], 0
mov eax, dword [esi + 0x228]
cmp eax, ebp
je 0x61c6bd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x228], ebp
mov eax, dword [esi + 0x224]
cmp eax, ebp
je 0x61c6d5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x224], ebp
mov byte [esi + 0x232], 0
mov eax, dword [0x7233e4]
mov edx, dword [0x7233ec]
mov ecx, dword [0x7233e8]
mov dword [esp + 0x40], eax
mov eax, dword [0x7233f0]
mov dword [esp + 0x48], edx
mov edx, dword [0x7233f8]
mov dword [esp + 0x4c], eax
mov eax, dword [0x7233fc]
mov dword [esp + 0x44], ecx
mov ecx, dword [0x7233f4]
mov dword [esp + 0x54], edx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x58], ecx
mov ecx, dword [0x723400]
push 1
mov dword [esp + 0x68], ecx
push ebp
lea ecx, [esp + 0x60]
push ecx
mov dword [esp + 0x30], ebp
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x61ca84
mov eax, dword [0x723408]
mov edx, dword [0x723404]
mov ecx, dword [0x72340c]
mov dword [esp + 0x64], eax
mov eax, dword [0x723414]
mov dword [esp + 0x60], edx
mov edx, dword [0x723410]
mov dword [esp + 0x68], ecx
mov ecx, dword [0x723418]
mov dword [esp + 0x70], eax
mov eax, dword [0x723420]
mov dword [esp + 0x6c], edx
mov edx, dword [0x72341c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x18], ebp
mov ecx, str.Default
mov eax, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x61c7d6
cmp dx, bp
je 0x61c7d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x61c7d6
add eax, 4
add ecx, 4
cmp dx, bp
jne 0x61c7b0
xor eax, eax
jmp 0x61c7db
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebp
mov ecx, dword [esi]
lea edx, [esp + 0x18]
push edx
jne 0x61c807
mov al, byte [esp + 0x90]
mov dl, al
neg dl
sbb edx, edx
and edx, 2
push edx
xor edx, edx
test al, al
mov eax, dword [ecx + 0x10]
setne dl
push edx
push esi
call eax
jmp 0x61c80e
mov eax, dword [ecx + 0x14]
push edi
push esi
call eax
cmp eax, ebp
jl 0x61ca64
mov esi, dword [esp + 0x18]
cmp esi, ebp
je 0x61ca74
mov edi, dword [esp + 0x88]
mov eax, dword [edi + 0x224]
add edi, 0x224
cmp eax, ebp
je 0x61c843
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
push edi
push ebp
push 0x17
lea ecx, [esp + 0x6c]
push ecx
push esi
call edx
test eax, eax
jl 0x61ca64
mov eax, dword [edi]
cmp eax, ebp
je 0x61ca64
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x61ca64
mov eax, dword [edi]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x24]
push edx
mov dword [esp + 0x30], ebp
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x1c]
call eax
cmp eax, ebp
jl 0x61ca64
cmp eax, 1
jne 0x61c8b6
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], edi
jmp 0x61c8c5
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edi, dword [esp + 0x20]
movzx eax, word [edi]
xor esi, esi
cmp ax, 0xfffe
lea ebx, [esi + 3]
jne 0x61c959
lea ecx, [edi + 0x18]
mov eax, 0x714a60
mov esi, edi
call fcn.00401050
test eax, eax
je 0x61ca64
cmp word [edi + 2], 0xff
mov eax, dword [esp + 0x18]
ja 0x61ca68
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], ebp
mov ecx, dword [eax]
push ebp
push eax
mov eax, dword [ecx + 0x10]
call eax
test eax, eax
jl 0x61c977
mov ecx, dword [esp + 0x24]
cmp ecx, ebp
je 0x61c977
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov edx, dword [ecx]
lea eax, [esp + 0x30]
push eax
push 0x6bd0a8
push ecx
mov ecx, dword [edx + 0x14]
call ecx
test eax, eax
jl 0x61c977
mov edi, dword [esp + 0x88]
mov ecx, dword [esp + 0x38]
lea eax, [edi + 0x1c]
call fcn.00638030
jmp 0x61c97e
cmp ax, bx
je 0x61c8ee
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x61ca74
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x61ca74
mov edi, dword [esp + 0x88]
cmp esi, ebp
jne 0x61c986
xor eax, eax
jmp 0x61c989
mov eax, dword [esi + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x237], eax
mov al, byte [ecx + 2]
test al, al
mov byte [edi + 8], al
jne 0x61c9a4
mov byte [edi + 8], 1
mov byte [edi + 0xd], bl
mov eax, dword [ecx + 4]
cmp eax, ebp
mov dword [edi + 4], eax
jg 0x61c9b8
mov dword [edi + 4], 0xac44
mov byte [edi + 0xd], bl
mov eax, dword [edi + 0x224]
mov edx, dword [eax]
push ebp
push ecx
mov cl, byte [esp + 0x94]
neg cl
push ebp
push ebp
push ebp
push 0x23c34600
sbb ecx, ecx
and ecx, 0xfffe0000
add ecx, 0x20000
push ecx
push ebp
push eax
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jge 0x61ca1f
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x61c9fd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x61ca0d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x61ca84
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x61ca8b
mov eax, dword [edi + 0x228]
cmp eax, ebp
mov esi, dword [edi + 0x224]
lea ebx, [edi + 0x228]
je 0x61ca3f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx], ebp
mov eax, dword [esi]
mov edx, dword [eax + 0x38]
push ebx
lea ecx, [esp + 0x74]
push ecx
push esi
call edx
test eax, eax
jl 0x61c9ed
cmp dword [ebx], ebp
je 0x61c9ed
mov byte [esp + 0x17], 1
mov byte [edi + 0x1a], 0
mov byte [edi + 0x1b], 0
jmp 0x61c9ed
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x61ca74
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x61ca84
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov edi, dword [esp + 0x88]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x61ca9a
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov bl, byte [esp + 0x17]
test bl, bl
jne 0x61cad4
mov eax, dword [edi + 0x224]
cmp eax, ebp
je 0x61caba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x224], ebp
mov eax, dword [edi + 0x228]
cmp eax, ebp
je 0x61cad2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x228], ebp
test bl, bl
mov ecx, dword [esp + 0x2c]
setne al
sub al, 1
push ecx
and eax, 2
mov byte [edi + 0xd], al
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8