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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ac78
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0x1f0], eax
push ebx
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, esp
push eax
lea eax, [esp + 0x208]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea ecx, [esp + 0x114]
push 1
mov dword [esp + 0x20], eax
call fcn.00451fd0
mov dword [esp + 0x210], 0
lea eax, [ebx + 4]
mov dword [esp + 0x24], eax
mov ecx, dword [eax]
mov byte [esp + 0x28], 1
call fcn.00436150
mov byte [esp + 0x210], 1
sub esp, 8
lea ecx, [esp + 0x11c]
call fcn.0045f370
push 2
lea ecx, [esp + 0x118]
call fcn.004538a0
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0xc]
cmp esi, edi
je 0x45d522
jmp 0x45d400
cmp byte [esi + 0x1a], 0
je 0x45d514
cmp byte [esi + 0x18], 0
je 0x45d514
test byte [esi + 0x2c], 1
jne 0x45d514
push 1
lea ecx, [esp + 0x30]
call fcn.00451fd0
mov byte [esp + 0x210], 2
cmp dword [esi + 0x14], 0x10
jb 0x45d43b
mov eax, dword [esi]
jmp 0x45d43d
mov eax, esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ea80
mov eax, dword [esi + 0x1c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push str.status
call fcn.0045eb40
mov eax, dword [esi + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ec00
lea eax, [esi + 0x1b]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ecc0
lea eax, [esi + 0x30]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ed80
lea eax, [esi + 0x48]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ee40
lea eax, [esi + 0x60]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ef00
lea eax, [esi + 0x78]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045efc0
push ecx
lea ecx, [esp + 0x30]
call fcn.00452200
lea ecx, [esp + 0x2c]
call fcn.004520e0
cmp dword [eax + 0x14], 0x10
jb 0x45d4e1
mov eax, dword [eax]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x114]
lea eax, [esp + 0x14]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00453120
mov byte [esp + 0x210], 1
lea ecx, [esp + 0x2c]
call fcn.00451550
add esi, 0x90
cmp esi, edi
jne 0x45d400
mov eax, dword [esp + 0x1dc]
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x45d53b
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
mov dword [esp + 0x1dc], ecx
jae 0x45d55a
lea eax, [esp + 0x1cc]
mov byte [eax + ecx], 0
mov eax, dword [esp + 0x1f4]
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x45d577
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [esp + 0x1f8], 0x10
mov eax, dword [esp + 0x1e4]
mov dword [esp + 0x1f4], ecx
jae 0x45d596
lea eax, [esp + 0x1e4]
mov byte [eax + ecx], 0
mov edx, 0x5853d8
lea ecx, [esp + 0x12c]
mov byte [esp + 0x174], 1
call fcn.00454120
sub esp, 8
lea ecx, [esp + 0x11c]
call fcn.0045fa20
push 2
lea ecx, [esp + 0x118]
call fcn.004538a0
mov esi, dword [ebx + 0x14]
mov edi, dword [ebx + 0x18]
cmp esi, edi
je 0x45d7d6
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov edi, edi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x210], 3
lea eax, [esp + 0x2c]
push ecx
push eax
lea ecx, [esp + 0x4c]
call fcn.00452b30
mov byte [esp + 0x210], 4
mov dword [esp + 0xf4], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0xf8], 0xf
mov dword [esp + 0xf4], 0
mov byte [esp + 0xe4], 0
mov byte [esp + 0x210], 5
mov dword [esp + 0x10c], 0
mov dword [esp + 0x110], 0
mov dword [esp + 0x110], 0xf
mov dword [esp + 0x10c], 0
mov byte [esp + 0xfc], 0
mov byte [esp + 0x210], 6
lea eax, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x34]
call fcn.00454370
push 1
lea ecx, [esp + 0x30]
call fcn.004538a0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov dword [esp + eax + 0x5c], 0x11
mov dword [esp + eax + 0x60], 0
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov byte [esp + eax + 0x84], 0x30
mov byte [esp + 0x210], 7
lea ecx, [esp + 0x2c]
mov eax, dword [esi]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push str.plugin
call fcn.0045eb40
mov eax, dword [esi + 4]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push str.unique
call fcn.0045eb40
lea eax, [esi + 8]
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.0045ee40
push ecx
lea ecx, [esp + 0x30]
call fcn.00452200
lea ecx, [esp + 0x2c]
call fcn.004520e0
cmp dword [eax + 0x14], 0x10
jb 0x45d750
mov eax, dword [eax]
mov ecx, dword [esp + 0x1dc]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x45d77c
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x45d777
lea eax, [esp + 0x1cc]
or byte [eax + ecx - 1], 0x20
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x11c]
call fcn.004535e0
mov ecx, dword [esp + 0x1dc]
test ecx, ecx
je 0x45d7ba
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
jae 0x45d7b5
lea eax, [esp + 0x1cc]
and byte [ecx + eax - 1], 0xdf
mov byte [esp + 0x210], 1
lea ecx, [esp + 0x2c]
call fcn.00451550
add esi, 0x20
cmp esi, edi
jne 0x45d5f0
mov eax, dword [esp + 0x1dc]
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x45d7ef
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [esp + 0x1e0], 0x10
mov eax, dword [esp + 0x1cc]
mov dword [esp + 0x1dc], ecx
jae 0x45d80e
lea eax, [esp + 0x1cc]
mov byte [ecx + eax], 0
mov eax, dword [esp + 0x1f4]
lea ecx, [eax - 1]
cmp eax, ecx
jae 0x45d82b
push str.invalid_string_position
call dword [sym.imp.MSVCP120.dll_void___cdecl_std::_Xout_of_range_char_const__]
cmp dword [esp + 0x1f8], 0x10
mov eax, dword [esp + 0x1e4]
mov dword [esp + 0x1f4], ecx
jae 0x45d84a
lea eax, [esp + 0x1e4]
mov byte [ecx + eax], 0
mov edx, 0x5853d8
lea ecx, [esp + 0x12c]
mov byte [esp + 0x174], 1
call fcn.00454120
lea ecx, [esp + 0x114]
call fcn.004520e0
mov edx, eax
cmp dword [edx + 0x14], 0x10
jb 0x45d87d
mov edx, dword [edx]
cmp byte [edx], 0
jne 0x45d886
xor ecx, ecx
jmp 0x45d899
mov ecx, edx
lea esi, [ecx + 1]
jmp 0x45d890
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45d890
sub ecx, esi
push ecx
mov ecx, dword [esp + 0x20]
push edx
call fcn.0041e000
mov byte [esp + 0x210], 0
mov esi, dword [ebx + 4]
test esi, esi
je 0x45d93b
mov eax, dword [0x5c0740]
cmp eax, 0xffffffff
jne 0x45d8d8
push 0
xor edx, edx
lea ecx, [eax + 7]
call fcn.0051f2a0
movzx eax, al
add esp, 4
mov dword [0x5c0740], eax
cmp eax, 1
je 0x45d919
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 0x30], eax
jne 0x45d8f8
push esi
mov dword [esi + 0x30], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45d93b
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x34]
jne 0x45d910
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x45d93b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi]
lea eax, [esi + 4]
push eax
jne 0x45d935
mov dword [esi], 0
call dword [0x5c002c]
jmp 0x45d93b
call dword [0x5c0030]
mov dword [esp + 0x210], 0xffffffff
lea ecx, [esp + 0x114]
call fcn.00451550
mov ecx, dword [esp + 0x208]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1f0]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4