Function at 0x45835c
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x512ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x5aa4e4]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5aa4e4]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov esi, ecx
lea ebp, [esi + 0x1c]
push ebp
mov dword [esp + 0x28], ebp
call dword [0x540500]
xor ebx, ebx
mov dword [esp + 0x2d0], ebx
lea eax, [esp + 0x14]
push eax
call fcn.00468270
mov byte [esp + 0x2d4], 1
mov ecx, dword [esp + 0x18]
push ecx
push 0x55eb80
call fcn.00447920
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00402a60
mov byte [esp + 0x2d0], 2
mov edx, dword [esp + 0x14]
push 0x55eb6c
push edx
call fcn.004c8cf6
add esp, 8
lea ecx, [esp + 0x18]
cmp eax, ebx
jne 0x45835c
push 0xc
push str.CSysManager::OnHookDriveSet_:_end
jmp 0x458363
push 0xd
push 0x55eb34
call fcn.004031c0
lea ecx, [esp + 0x1c]
call fcn.00402a60
mov byte [esp + 0x2d0], 3
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push 0x55eb20
push ecx
call fcn.004033a0
mov edx, dword [esp + 0x20]
lea edi, [esi + 4]
push edi
push edx
call fcn.004581f0
add esp, 0x14
test eax, eax
jne 0x458471
push 0xf003f
push ebx
push ebx
call dword [0x540004]
cmp eax, ebx
jne 0x458414
mov eax, dword [esp + 0x14]
push eax
push 0x55eaa8
call fcn.00447920
add esp, 8
mov byte [esp + 0x2d0], 2
lea ecx, [esp + 0x1c]
call fcn.00402ad0
mov byte [esp + 0x2d0], 1
lea ecx, [esp + 0x18]
call fcn.00402ad0
mov byte [esp + 0x2d0], bl
lea ecx, [esp + 0x14]
call fcn.00402ad0
mov dword [esp + 0x2d0], 0xffffffff
push ebp
call dword [0x5404f8]
xor eax, eax
jmp 0x458619
mov ecx, dword [esp + 0x14]
push ecx
push eax
call fcn.00457260
add esp, 8
test eax, eax
jne 0x458441
call dword [0x540510]
mov edx, dword [esp + 0x14]
push eax
push edx
push 0x55ea18
call fcn.00447920
add esp, 0xc
jmp 0x4583c9
mov eax, dword [esp + 0x14]
push edi
push eax
call fcn.004581f0
add esp, 8
test eax, eax
jne 0x4584c9
call dword [0x540510]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0x55e990
call fcn.00447920
add esp, 0xc
jmp 0x4583c9
push 0x10000
call fcn.0048034a
mov edx, dword [esp + 0x20]
mov edi, dword [0x540640]
add esp, 4
push edx
push ebx
push 0x100000
mov dword [0x5ad110], eax
call edi
mov dword [esi + 8], eax
cmp eax, ebx
jne 0x4584ad
mov eax, dword [esp + 0x18]
push eax
push ebx
push 0x100000
call edi
mov dword [esi + 8], eax
cmp dword [esi + 8], ebx
jne 0x4584d1
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push 0x55e918
call fcn.00447920
add esp, 0xc
or esi, 0xffffffff
jmp 0x4585c1
push ebx
push ebx
push 1
push ebx
call dword [0x540628]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x4584c9
lea eax, [esp + 0x20]
push eax
push 0x190
lea ecx, [esp + 0x38]
push ecx
call fcn.00480210
test eax, eax
je 0x4585a3
mov eax, dword [esp + 0x20]
shr eax, 2
xor edi, edi
mov dword [esp + 0x20], eax
cmp eax, ebx
jbe 0x4585a3
mov ebp, dword [0x5405d0]
lea ebx, [ebx]
push 0x103
lea edx, [esp + 0x1c5]
push ebx
push edx
mov byte [esp + 0x1cc], bl
call fcn.004c8fa0
mov ecx, dword [esp + edi*4 + 0x3c]
add esp, 0xc
push 0x100
lea eax, [esp + 0x1c8]
push eax
push ecx
mov ecx, esi
call fcn.004571b0
test eax, eax
je 0x458598
mov edx, dword [esp + edi*4 + 0x30]
lea eax, [esp + 0x1c4]
mov dword [esp + 0x1c0], edx
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x458570
push ebx
lea ecx, [esp + 0x30]
push ecx
push ebx
sub eax, edx
push ebx
add eax, 5
push eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x1d4]
push edx
push 0xc7012020
push eax
call ebp
inc edi
cmp edi, dword [esp + 0x20]
jb 0x458520
mov ebp, dword [esp + 0x24]
lea ecx, [esp + 0x28]
push ecx
push ebx
push esi
push 0x457500
push ebx
push ebx
call fcn.004ce56b
mov dword [esi + 0x10], eax
add esp, 0x18
mov esi, 1
mov edx, dword [esp + 0x14]
push edx
push 0x55e8d8
call fcn.00447920
add esp, 8
mov byte [esp + 0x2d0], 2
lea ecx, [esp + 0x1c]
call fcn.00402ad0
mov byte [esp + 0x2d0], 1
lea ecx, [esp + 0x18]
call fcn.00402ad0
mov byte [esp + 0x2d0], bl
lea ecx, [esp + 0x14]
call fcn.00402ad0
mov dword [esp + 0x2d0], 0xffffffff
push ebp
call dword [0x5404f8]
mov eax, esi
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.004c8a79
add esp, 0x2c0
ret