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

Disassembly:
push 0xffffffffffffffff
push 0x481d0b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4a28]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0xc], eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], edi
jle 0x42c36b
cmp eax, edi
jl 0x42c366
cmp eax, dword [ebp + 0xc]
jge 0x42c366
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + eax*4]
mov dword [esp + 0x18], esi
jmp 0x42c371
call fcn.00442afc
mov dword [esp + 0x18], edi
mov esi, edi
mov edx, dword [esi]
mov eax, dword [esp + 0x48]
mov edx, dword [edx + 0x1c]
push edi
push eax
mov ecx, esi
call edx
test eax, eax
je 0x42c599
call fcn.00442c05
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42c3a2
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], edi
call fcn.00442c05
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x42c3d0
push 0x80004005
call fcn.00402720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x44], eax
mov eax, str.DiagCheckItem
mov byte [esp + 0x34], 1
xor ebx, ebx
call fcn.00439bd0
mov dword [esp + 0x24], eax
mov edx, dword [esi]
mov edx, dword [edx + 0x78]
lea eax, [esp + 0x44]
push eax
push 0
mov ecx, esi
call edx
test eax, eax
je 0x42c50c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
push eax
push str.DiagCheckItem
push ecx
call fcn.004674aa
add esp, 0xc
test eax, eax
jne 0x42c50c
mov edx, dword [esi]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call edx
test eax, eax
je 0x42c50c
push 0x10
call fcn.0044285b
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0x34], 2
je 0x42c46d
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x4c]
push ebp
push eax
call fcn.00434c50
mov esi, eax
jmp 0x42c46f
xor esi, esi
mov byte [esp + 0x34], 1
call fcn.00434ea0
test eax, eax
je 0x42c4f6
cmp dword [esp + 0x14], 0
jne 0x42c495
test edi, edi
je 0x42c491
call fcn.00434f80
cmp eax, edi
je 0x42c495
xor eax, eax
jmp 0x42c49a
mov eax, 1
xor ebx, ebx
test eax, eax
sete bl
test ebx, ebx
jne 0x42c4ef
mov ecx, dword [esp + 0x40]
push esi
call fcn.00435280
test eax, eax
jne 0x42c4ef
mov edx, dword [esp + 0x4c]
push edx
push esi
call fcn.00435050
lea eax, [esp + 0x44]
push eax
push esi
call fcn.00435120
test eax, eax
je 0x42c4df
mov eax, dword [esp + 0x44]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00409170
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0x65b
call fcn.00434f80
mov edi, eax
test esi, esi
je 0x42c504
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test ebx, ebx
jne 0x42c51d
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
mov eax, dword [edx + 0x20]
mov ecx, esi
call eax
test eax, eax
jne 0x42c3f5
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x1c]
jne 0x42c550
push esi
lea ecx, [esp + 0x48]
push 0x48bf50
push ecx
call fcn.004048d0
mov edx, dword [esp + 0x50]
add esp, 0xc
push edx
push ebp
mov ebx, str._DIAG_ERR_REPORT_
mov eax, 1
call fcn.0042a100
mov byte [esp + 0x34], 0
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c599
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov dword [ecx + 0x10], edx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x14