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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov dword [ebp - 8], edi
cmp dword [edi], 0
je 0x45fd77
push ebx
mov ebx, dword [sym.imp.PAL.dll_PalMemoryFree]
mov eax, 8
push esi
lea esi, [edi + 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x45fa34
call fcn.0045ed90
mov eax, dword [esi]
push dword [eax + 0x10]
call ebx
push dword [esi]
call ebx
mov eax, dword [ebp - 4]
add esp, 8
add esi, 4
sub eax, 1
mov dword [ebp - 4], eax
jne 0x45fa18
mov eax, dword [edi + 0x28]
test eax, eax
je 0x45fa6e
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x45fa54
push eax
push edi
call ecx
add esp, 8
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x28], eax
push dword [esi]
call ebx
push esi
call ebx
mov eax, dword [edi + 0x28]
add esp, 8
test eax, eax
jne 0x45fa46
push dword [edi + 0x10]
call ebx
mov esi, dword [edi + 0xc]
xor eax, eax
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xe8], 0
mov word [esi + 0xf4], ax
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
mov dword [esi + 0x110], eax
mov dword [esi + 0x120], eax
mov dword [esi + 0x124], eax
mov dword [esi + 0x128], eax
cmp dword [edi + 4], eax
jne 0x45fd3f
movss xmm0, dword [esi + 0x1a0]
addss xmm0, dword [esi + 0x58]
mov eax, dword [esi + 0x178]
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0x17c]
add dword [esi + 0x20], eax
movss dword [esi + 0x58], xmm0
movss xmm0, dword [esi + 0x1ac]
addss xmm0, dword [esi + 0x78]
mov eax, dword [esi + 0x180]
add dword [esi + 0x24], eax
mov eax, dword [esi + 0x184]
add dword [esi + 0x34], eax
movss dword [esi + 0x78], xmm0
movss xmm0, dword [esi + 0x1b0]
addss xmm0, dword [esi + 0x7c]
mov eax, dword [esi + 0x188]
add dword [esi + 0x38], eax
mov eax, dword [esi + 0x18c]
add dword [esi + 0x3c], eax
movss dword [esi + 0x7c], xmm0
movss xmm0, dword [esi + 0x1b4]
addss xmm0, dword [esi + 0x80]
push 0
movss dword [esi + 0x80], xmm0
movss xmm0, dword [esi + 0x1b8]
addss xmm0, dword [esi + 0x90]
movss dword [esi + 0x90], xmm0
movss xmm0, dword [esi + 0x1bc]
addss xmm0, dword [esi + 0x94]
movss dword [esi + 0x94], xmm0
movss xmm0, dword [esi + 0x1c0]
addss xmm0, dword [esi + 0x98]
movss dword [esi + 0x98], xmm0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add eax, 0x28548
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
lea ebx, [eax + 0x5c]
cmp dword [ebx - 0x5c], 0
je 0x45fc23
mov eax, dword [ebx - 0x50]
not eax
test eax, 0x40000
jne 0x45fc23
xor edx, edx
mov ecx, ebx
nop dword [eax]
test dword [ecx - 4], 0x10000000
je 0x45fc17
imul eax, dword [ecx], 0x2dc
mov edi, dword [ebp - 0xc]
cmp esi, dword [eax + edi]
je 0x45fc6c
inc edx
add ecx, 0x50
cmp edx, 8
jl 0x45fc00
mov ecx, dword [ebp - 4]
inc ecx
add ebx, 0x2dc
mov dword [ebp - 4], ecx
cmp ecx, 0x40
jl 0x45fbe3
xor eax, eax
movzx ecx, word [esi + 0x1a4]
movzx edx, word [esi + 0x1a6]
movzx ebx, word [esi + 0x1a8]
mov edi, dword [ebp - 8]
test eax, eax
je 0x45fc73
movzx eax, word [esi + 0x1aa]
add word [esi + 0x60], cx
add word [esi + 0x62], dx
add word [esi + 0x64], bx
add word [esi + 0x66], ax
jmp 0x45fd3f
mov eax, 1
jmp 0x45fc34
movzx eax, byte [esi + 0x5f]
add ax, cx
mov dword [ebp - 4], 0xff
movzx eax, ax
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 0x5e]
add ax, dx
movzx edx, word [esi + 0x1aa]
movzx ecx, ax
movzx eax, byte [esi + 0x5d]
add ax, bx
movzx ebx, ax
movzx eax, byte [esi + 0x5c]
add ax, dx
movzx edx, ax
mov eax, dword [ebp - 0xc]
cmp ax, word [ebp - 4]
jle 0x45fcbc
mov eax, 0xff
jmp 0x45fcca
test ax, ax
mov dword [ebp - 0xc], 0
cmovs eax, dword [ebp - 0xc]
cmp cx, word [ebp - 4]
jle 0x45fcd7
mov ecx, 0xff
jmp 0x45fce5
test cx, cx
mov dword [ebp - 0xc], 0
cmovs ecx, dword [ebp - 0xc]
cmp bx, word [ebp - 4]
jle 0x45fcf2
mov ebx, 0xff
jmp 0x45fd00
test bx, bx
mov dword [ebp - 0xc], 0
cmovs ebx, dword [ebp - 0xc]
cmp dx, word [ebp - 4]
jle 0x45fd0d
mov edx, 0xff
jmp 0x45fd1b
test dx, dx
mov dword [ebp - 0xc], 0
cmovs edx, dword [ebp - 0xc]
cwde
movzx ecx, cl
shl eax, 8
or ecx, eax
movzx eax, bl
shl ecx, 8
or ecx, eax
movzx eax, dl
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
push 0x4c
lea eax, [esi + 0x178]
push 0
push eax
call fcn.0046f210
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x50]
mov dword [ecx + 0x50], eax
mov ecx, dword [edi + 0x50]
pop esi
pop ebx
test ecx, ecx
je 0x45fd6a
mov eax, dword [edi + 0x4c]
mov dword [ecx + 0x4c], eax
push 0x54
push 0
push edi
call fcn.0046f210
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret