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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [0x80044514]
cmp byte [esi + 0x56], 0
push edi
je 0x800212ee
and byte [esi + 0x56], 0
jmp 0x800212f6
call sym.xboxkrnl.exe_Ordinal_129
mov byte [esi + 0x54], al
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp byte [esi + 0x49], 0
je 0x80021317
mov cl, byte [esi + 0x54]
cmp cl, 1
jae 0x80021317
call sym.xboxkrnl.exe_Ordinal_163
jmp 0x800214a0
xor ecx, ecx
mov dword [esi + 0x50], ecx
cmp byte [edi], 2
jne 0x8002134c
mov eax, dword [edi + 4]
cmp eax, ecx
jg 0x8002132d
cmp esi, dword [edi + 0x18]
jne 0x80021355
cmp eax, 0x80000000
jne 0x800214ad
mov cl, byte [esi + 0x54]
call sym.xboxkrnl.exe_Ordinal_163
push 0xc0000191
call sym.xboxkrnl.exe_Ordinal_27
jmp 0x80021355
cmp dword [edi + 4], ecx
jg 0x800214dd
lea eax, [ebp - 0x2c]
mov dword [esi + 0x58], eax
and word [ebp - 0x18], 0
cmp byte [ebp + 0x14], 0
mov dword [ebp - 0x20], edi
mov word [ebp - 0x16], 1
mov dword [ebp - 0x24], esi
je 0x800213a6
movsx eax, byte [ebp + 0x10]
cmp byte [eax + esi + 0x2d], 0
jne 0x800214f9
cmp byte [ebp + 0x10], 0
je 0x80021392
lea eax, [esi + 0x3c]
cmp dword [eax], eax
jne 0x80021507
cmp byte [esi + 0x2d], 0
je 0x800213b6
and byte [esi + 0x2d], 0
mov edi, 0x101
jmp 0x8002151d
cmp byte [ebp + 0x10], 0
je 0x800213b6
cmp byte [esi + 0x4a], 0
jne 0x8002150b
test ebx, ebx
je 0x80021405
mov eax, dword [ebx + 4]
or eax, dword [ebx]
je 0x80021512
lea eax, [esi + 0xb0]
mov dword [ebp - 0x1c], eax
lea ebx, [esi + 0x88]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
lea ecx, [ebp - 0x2c]
mov dword [eax + 0x10], ecx
mov eax, dword [ebp + 0x18]
push dword [eax + 4]
mov ecx, ebx
push dword [eax]
call fcn.80023bbb
test eax, eax
je 0x80021512
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
jmp 0x8002140b
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x2c]
mov dword [ecx], edx
lea ecx, [ebp - 0x2c]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x8002142e
call fcn.80021d14
mov al, byte [ebp + 0x14]
mov byte [esi + 0x2f], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x55], al
mov al, byte [ebp + 0xc]
mov byte [esi + 0x57], al
mov eax, dword [sym.xboxkrnl.exe_Ordinal_156]
mov dword [esi + 0x64], eax
mov byte [esi + 0x2c], 5
mov ecx, dword [0x8004996c]
lea eax, [esi + 0x5c]
mov dword [eax], 0x80049968
mov dword [esi + 0x60], ecx
mov dword [ecx], eax
mov dword [0x8004996c], eax
call fcn.80020194
mov ebx, eax
cmp ebx, 0xc0
jne 0x80021479
call fcn.800232ff
cmp ebx, 0x100
jne 0x80021536
cmp dword [ebp + 0x18], 0
je 0x8002149d
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0xc]
call fcn.80020d3c
mov dword [ebp + 0x18], eax
mov ebx, dword [ebp + 0x18]
call sym.xboxkrnl.exe_Ordinal_129
mov byte [esi + 0x54], al
jmp 0x800212ff
dec dword [edi + 4]
jne 0x800214d8
cmp byte [edi + 0x1c], 1
mov dword [edi + 0x18], esi
jne 0x800214c6
and byte [edi + 0x1c], 0
mov dword [esi + 0x50], 0x80
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
lea ecx, [edi + 0x10]
mov dword [ecx], edx
mov dword [edi + 0x14], eax
mov dword [edx + 4], ecx
mov dword [eax], ecx
mov edi, dword [esi + 0x50]
jmp 0x80021517
mov al, byte [edi]
mov dl, al
and dl, 7
cmp dl, 1
jne 0x800214ee
mov dword [edi + 4], ecx
jmp 0x800214f5
cmp al, 5
jne 0x800214f5
dec dword [edi + 4]
xor edi, edi
jmp 0x80021517
movsx eax, byte [ebp + 0x10]
and byte [eax + esi + 0x2d], 0
jmp 0x8002139c
mov byte [esi + 0x4a], 1
mov edi, 0xc0
jmp 0x8002151d
mov edi, 0x102
push esi
call fcn.80020d97
mov cl, byte [esi + 0x54]
call sym.xboxkrnl.exe_Ordinal_163
cmp edi, 0xc0
jne 0x80021532
call fcn.800232ff
mov eax, edi
jmp 0x80021538
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14