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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464a16
mov eax, dword fs:[0]
push eax
sub esp, 0x2e0
mov eax, dword [0x4e9028]
xor eax, esp
mov dword [esp + 0x2d8], eax
push ebx
push esi
push edi
mov eax, dword [0x4e9028]
xor eax, esp
push eax
lea eax, [esp + 0x2f0]
mov dword fs:[0], eax
mov esi, ecx
mov eax, esi
mov dword [esp + 0x20], esi
call fcn.00436d80
call fcn.00435ad0
mov edi, eax
mov dword [esp + 0x98], edi
call fcn.00435b30
xor edx, edx
cmp edi, edx
mov dword [esp + 0x4c], eax
jne 0x43622d
cmp eax, 4
jbe 0x436262
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x3fd
add esi, 8
call fcn.00433b80
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_LogicalCount__0__PrimaryCount___4.
push edi
call eax
add esp, 0xc
xor eax, eax
jmp 0x436d5c
jbe 0x436262
cmp eax, 3
jbe 0x436262
call fcn.0041e870
mov edi, eax
mov esi, dword [edi]
push 0x403
add esi, 8
call fcn.00433b80
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_LogicalCount___0__PrimaryCount___3.
push edi
call ecx
add esp, 0xc
xor eax, eax
jmp 0x436d5c
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], edx
mov dword [esp + 0x2f8], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], edx
mov byte [esp + 0x2f8], 1
xor edi, edi
mov ecx, dword [esi + 0xc]
cmp ecx, edx
mov dword [esp + 0x14], edi
je 0x43634a
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
cmp edi, eax
jae 0x43634a
cmp ecx, edx
je 0x4362c3
mov eax, dword [esi + 0x10]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x4362c9
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov edx, dword [esi + 0xc]
mov ebx, dword [edx + edi*4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
mov ecx, ebx
mov dword [esp + 0x18], ebx
call edx
test al, al
je 0x436340
mov edi, dword [esp + 0x38]
test edi, edi
mov edx, dword [esp + 0x3c]
je 0x436314
mov ecx, dword [esp + 0x40]
mov eax, edx
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x436314
mov edi, dword [esp + 0x14]
mov dword [edx], ebx
add edx, 4
mov dword [esp + 0x3c], edx
add edi, 1
xor edx, edx
jmp 0x436294
cmp edi, edx
mov ebx, edx
jbe 0x436320
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
push ebx
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x88]
push ecx
lea eax, [esp + 0x44]
call fcn.00438920
mov edi, dword [esp + 0x14]
add edi, 1
xor edx, edx
jmp 0x436294
xor esi, esi
or edi, 0xffffffff
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x14], esi
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x436452
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x436452
mov edx, ecx
mov esi, dword [edx + esi*4]
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
test eax, eax
jne 0x436444
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
mov dword [esp + 0x74], eax
mov eax, dword [esi]
mov ebx, edx
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov ecx, dword [esp + 0x74]
add ecx, eax
adc ebx, edx
cmp ebx, dword [esp + 0x60]
mov dword [esp + 0x6c], ecx
jb 0x4363f8
ja 0x4363ca
mov edx, dword [esp + 0x5c]
cmp ecx, edx
jbe 0x4363f8
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
add ebx, eax
mov eax, dword [esp + 0x48]
adc eax, edx
add ebx, 0xffffffff
adc eax, 0xffffffff
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
sub eax, ebx
mov ecx, 0
sbb edx, ecx
cmp edx, edi
ja 0x436444
jb 0x436421
cmp eax, dword [esp + 0x54]
jae 0x436444
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
sub eax, ebx
mov dword [esp + 0x54], eax
mov edi, edx
mov eax, 0
sbb edi, eax
add dword [esp + 0x14], 1
mov esi, dword [esp + 0x14]
jmp 0x436363
push 0x48
xor esi, esi
lea eax, [esp + 0xa0]
push esi
push eax
mov dword [esp + 0x64], edi
call sub.ntdll.dll_memset
add esp, 0xc
xor edx, edx
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], edx
lea ebx, [esp + 0xa4]
jmp 0x436490
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x43660d
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp edx, eax
jae 0x43660d
mov eax, dword [esp + 0x14]
cmp eax, 4
mov edi, dword [ecx + eax*4]
je 0x43660d
mov edx, dword [edi]
mov eax, dword [edx + 0x58]
mov ecx, edi
call eax
test eax, eax
je 0x43660d
mov edx, dword [edi]
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
mov dword [esp + 0x78], edx
mov edx, dword [edi]
mov esi, eax
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x78]
mov ecx, esi
sub ecx, 1
sbb edx, 0
add eax, ecx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
adc eax, edx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x20]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x7c]
push edx
push eax
push esi
lea esi, [esp + 0x54]
call fcn.004360a0
mov edx, dword [edi]
mov eax, dword [edx + 0x40]
add esp, 0x10
mov ecx, edi
call eax
mov edx, dword [edi]
neg eax
sbb al, al
mov ecx, edi
and eax, 0x80
mov byte [esp + 0x24], al
mov eax, dword [edx + 0x64]
call eax
mov edx, dword [edi]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + 0x5c]
mov ecx, edi
call eax
mov edx, dword [edi]
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0x38]
mov ecx, edi
call eax
movzx ecx, byte [esp + 0x1c]
mov byte [esp + 0x28], al
mov eax, dword [esp + 0x44]
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x48]
mov edx, eax
shrd edx, ecx, 8
shl dl, 6
or dl, byte [esp + 0x18]
mov byte [esp + 0x27], al
mov byte [esp + 0x26], dl
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x70]
shr ecx, 8
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [eax + 4]
push edx
call fcn.004360a0
movzx ecx, byte [esp + 0x2c]
mov eax, dword [esp + 0x54]
add esp, 0x10
mov byte [esp + 0x29], cl
mov ecx, dword [esp + 0x48]
add dword [esp + 0x14], 1
mov edx, eax
shrd edx, ecx, 8
shl dl, 6
or dl, byte [esp + 0x18]
shr ecx, 8
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x2a], dl
mov edx, dword [esp + 0x24]
mov dword [ebx], edx
mov edx, dword [esp + 0x30]
mov byte [esp + 0x2b], al
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov edx, dword [esp + 0x14]
add ebx, 0x10
jmp 0x436490
mov ebx, dword [esp + 0x54]
mov eax, ebx
and eax, dword [esp + 0x58]
cmp eax, 0xffffffff
je 0x436709
cmp dword [esp + 0x98], 0
jbe 0x436709
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
lea esi, [esp + 0x54]
call fcn.004360a0
mov esi, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov al, byte [esp + 0x28]
mov edi, esi
sub edi, ebx
sbb edx, dword [esp + 0x68]
mov byte [esp + 0x35], al
mov eax, dword [esp + 0x54]
add edi, 1
adc edx, 0
mov dword [esp + 0x90], edx
mov edx, dword [esp + 0x58]
mov ecx, eax
shrd ecx, edx, 8
shl cl, 6
or cl, byte [esp + 0x24]
mov byte [esp + 0x37], al
mov byte [esp + 0x36], cl
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 4]
shr edx, 8
mov edx, dword [esp + 0x78]
push edx
push esi
lea esi, [esp + 0x64]
mov byte [esp + 0x44], 0
mov byte [esp + 0x48], 0xf
call fcn.004360a0
mov cl, byte [esp + 0x38]
mov eax, dword [esp + 0x64]
mov byte [esp + 0x49], cl
mov ecx, dword [esp + 0x68]
mov edx, eax
shrd edx, ecx, 8
shl dl, 6
or dl, byte [esp + 0x34]
mov byte [esp + 0x4b], al
mov eax, dword [esp + 0x6c]
shr ecx, 8
add esp, 0x20
mov byte [esp + 0x2a], dl
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
shl eax, 4
lea eax, [esp + eax + 0xa4]
mov dword [eax], edx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edi
lea eax, [esp + 0x9c]
lea esi, [esp + 0x88]
call fcn.004387c0
push 0x48
lea edx, [esp + 0xa0]
push 0
push edx
call sub.ntdll.dll_memset
add esp, 0xc
xor esi, esi
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x18], esi
je 0x436afe
mov eax, dword [esp + 0x3c]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x436afe
mov edi, dword [ecx + esi*4]
mov eax, dword [edi]
mov edx, dword [eax + 0x58]
mov ecx, edi
call edx
test eax, eax
jne 0x436a52
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x20]
mov ecx, edi
xor ebx, ebx
call edx
sub eax, esi
sbb edx, ebx
mov dword [esp + 0x9c], eax
mov eax, dword [edi]
mov dword [esp + 0xa0], edx
mov edx, dword [eax + 0x20]
mov ecx, edi
call edx
mov esi, eax
mov eax, dword [edi]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
mov ecx, dword [esp + 0x78]
mov ebx, eax
mov eax, esi
sub eax, 1
sbb ecx, 0
add ebx, eax
adc edx, ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x80], edx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [edx + 4]
push esi
lea esi, [esp + 0x5c]
call fcn.004360a0
mov eax, dword [edi]
mov edx, dword [eax + 0x64]
add esp, 0x10
mov ecx, edi
mov byte [esp + 0x24], 0
call edx
mov dword [esp + 0x2c], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x5c]
mov ecx, edi
call edx
mov dword [esp + 0x30], eax
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
mov ecx, edi
call edx
mov edx, dword [esp + 0x50]
mov byte [esp + 0x28], al
mov al, byte [esp + 0x1c]
mov byte [esp + 0x25], al
mov eax, dword [esp + 0x4c]
mov ecx, eax
shrd ecx, edx, 8
shl cl, 6
or cl, byte [esp + 0x14]
mov byte [esp + 0x27], al
mov byte [esp + 0x26], cl
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [eax + 4]
shr edx, 8
mov edx, dword [esp + 0x88]
push edx
push ebx
call fcn.004360a0
mov cl, byte [esp + 0x2c]
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x39], cl
mov ecx, dword [esp + 0x60]
mov edx, eax
shrd edx, ecx, 8
shl dl, 6
or dl, byte [esp + 0x24]
mov byte [esp + 0x3b], al
mov byte [esp + 0x3a], dl
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb4], edx
mov edx, dword [esp + 0x40]
shr ecx, 8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x48]
add esp, 0x10
test eax, eax
mov dword [esp + 0xb0], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xac], ecx
jne 0x4368bd
xor ecx, ecx
jmp 0x4368c4
mov ecx, edx
sub ecx, eax
sar ecx, 2
mov edi, dword [esp + 0x18]
lea esi, [edi + 1]
cmp esi, ecx
jae 0x436a27
xor ebx, ebx
cmp eax, ebx
je 0x4368e2
sub edx, eax
sar edx, 2
cmp esi, edx
jb 0x4368ec
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x38]
mov esi, dword [eax + edi*4 + 4]
mov eax, dword [esi]
mov edx, dword [eax + 0x58]
mov ecx, esi
call edx
test eax, eax
jne 0x436a5a
mov eax, dword [esi]
mov edx, dword [eax + 0x64]
mov ecx, esi
call edx
mov dword [esp + 0x44], eax
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
mov ecx, esi
call edx
mov edi, eax
sub edi, dword [esp + 0x44]
mov ebx, edx
mov eax, 0
sbb ebx, eax
mov eax, dword [esi]
mov edx, dword [eax + 0x5c]
mov ecx, esi
call edx
mov ecx, edi
sub ecx, 1
mov esi, ebx
sbb esi, 0
add eax, ecx
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + 4]
adc edx, esi
mov dword [esp + 0x70], edx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x70], eax
lea eax, [esp + 0x20]
push eax
push ebx
push edi
lea esi, [esp + 0x5c]
call fcn.004360a0
mov dl, byte [esp + 0x2c]
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
mov byte [esp + 0x6d], dl
mov edx, ecx
shrd edx, esi, 8
shl dl, 6
or dl, byte [esp + 0x24]
mov byte [esp + 0x6f], cl
mov eax, edi
sub eax, dword [esp + 0x64]
mov byte [esp + 0x6e], dl
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x38]
mov ebx, eax
push ecx
mov ecx, dword [edx + 4]
sub ebx, edi
shr esi, 8
push eax
lea esi, [esp + 0x6c]
mov byte [esp + 0x7c], 0
add ebx, 1
mov byte [esp + 0x80], 0xf
call fcn.004360a0
mov al, byte [esp + 0x3c]
mov edx, dword [esp + 0x70]
mov byte [esp + 0x81], al
mov eax, dword [esp + 0x6c]
mov ecx, eax
shrd ecx, edx, 8
shl cl, 6
add esp, 0x20
shr edx, 8
or cl, byte [esp + 0x14]
mov byte [esp + 0x63], al
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x62], cl
mov dword [esp + 0xb4], eax
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ebx
lea eax, [esp + 0x9c]
lea esi, [esp + 0x88]
call fcn.004387c0
push 0x48
lea eax, [esp + 0xa0]
push 0
push eax
call sub.ntdll.dll_memset
mov esi, dword [esp + 0x24]
add esp, 0xc
add esi, 1
jmp 0x436732
test byte [0x4f1904], 1
jne 0x436a8b
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x497
add esi, 8
call fcn.00433b80
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Sort_error.
push 0x4f18dc
call ecx
mov byte [esp + 0x304], 0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, ebx
je 0x436acc
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x436af7
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
xor eax, eax
jmp 0x436d5c
xor edi, edi
xor ebx, ebx
mov esi, dword [esp + 0x8c]
test esi, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
je 0x436d11
mov ecx, dword [esp + 0x90]
sub ecx, esi
mov eax, 0x38e38e39
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jae 0x436d11
push 0x1ff
xor edi, edi
lea edx, [esp + 0xe9]
push edi
push edx
add ebx, esi
mov byte [esp + 0xf0], 0
call sub.ntdll.dll_memset
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
add esp, 0xc
push edi
push 1
push eax
mov eax, dword [ebx]
push eax
lea eax, [esp + 0xf4]
push eax
call edx
test eax, eax
je 0x436bdf
mov eax, dword [esp + 0x20]
lea esi, [ebx + 8]
mov ecx, 0x10
lea edi, [esp + 0x2a2]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 4]
mov byte [esp + 0x2e2], 0x55
mov byte [esp + 0x2e3], 0xaa
mov eax, dword [ebx + 4]
mov edx, dword [ecx]
mov edx, dword [edx + 0x10]
xor edi, edi
push edi
push 1
push eax
mov eax, dword [ebx]
push eax
lea eax, [esp + 0xf4]
push eax
call edx
test eax, eax
je 0x436c76
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
add edi, 1
add ebx, 0x48
jmp 0x436b02
test byte [0x4f1904], 1
jne 0x436c10
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x4bd
add esi, 8
call fcn.00433b80
add esp, 4
push eax
mov eax, dword [esi]
push str._s:_Read_sector_for_UpdatePartTable2_failed.
push 0x4f18dc
call eax
mov byte [esp + 0x304], 0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, edi
je 0x436c51
push eax
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov dword [esp + 0x2f8], 0xffffffff
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
cmp eax, edi
jmp 0x436aec
test byte [0x4f1904], 1
jne 0x436ca7
or dword [0x4f1904], 1
push 0x467ae0
mov dword [0x4f18dc], 0x4dbdb8
mov dword [0x4f18e0], 0xffffffff
call fcn.00462d9a
add esp, 4
mov esi, dword [0x4f18dc]
push 0x4c7
add esi, 8
call fcn.00433b80
mov ecx, dword [esi]
add esp, 4
push eax
push str._s:_Write_sector_for_UpdatePartTable2_failed.
push 0x4f18dc
call ecx
mov byte [esp + 0x304], 0
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, edi
je 0x436c51
push eax
call sub.MFC80U.DLL_Ordinal_764
mov dword [esp + 0x2fc], 0xffffffff
mov eax, dword [esp + 0x90]
add esp, 4
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
cmp eax, edi
jmp 0x436aec
mov byte [esp + 0x2f8], 0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x436d31
push eax
call sub.MFC80U.DLL_Ordinal_764
mov esi, dword [esp + 0x90]
add esp, 4
xor eax, eax
cmp esi, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x2f8], 0xffffffff
je 0x436d57
push esi
call sub.MFC80U.DLL_Ordinal_764
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x2f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2d8]
xor ecx, esp
call fcn.00462b77
mov esp, ebp
pop ebp
ret