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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x87100004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp + 0x2c]
push ebx
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp + 0x30]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi]
mov ebx, dword [esi + 0x224]
mov dword [ebp - 0x48], ecx
mov ecx, dword [ebp + 0x34]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x44], ecx
xor ecx, ecx
push eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x2c], ecx
call dword [ebx + 0x78]
cmp eax, 1
jne 0x8374a98a
test byte [edi + 0xd2], 2
jne 0x8374a998
cmp eax, 3
jne 0x8374a9a2
test byte [edi + 0xd2], 1
je 0x8374a9a2
mov eax, 0xc00000bb
jmp 0x8374acf6
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x8374a9ed
mov ecx, dword [eax + 8]
cmp ecx, dword [eax + 4]
jbe 0x8374a9bb
mov eax, 0xc000000d
jmp 0x8374acf6
mov cl, byte [eax]
cmp cl, 0xff
je 0x8374a9de
cmp cl, byte [ebp + 0x18]
ja 0x8374a9b1
mov edx, dword [esi + 0x224]
mov edx, dword [edx + 0xc]
movzx edx, word [edx + 6]
movzx ecx, cl
shl edx, 3
cmp ecx, edx
jg 0x8374a9b1
mov eax, dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x8374a9ed
cmp eax, 0x7fffffff
ja 0x8374a9b1
cmp dword [ebp - 0x28], 0
je 0x8374aa98
push dword [ebp - 0x28]
call dword [ebx + 0x78]
push eax
push dword [ebp - 0x28]
push edi
call fcn.8376802c
push dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
push ebx
call fcn.83771a7c
test al, al
jne 0x8374a9b1
mov eax, dword [edi + 0x18]
cmp dword [eax + 0xc], 0x18
jne 0x8374aa31
movzx eax, word [ebx + 0x14]
push dword [ebp - 0x28]
push eax
call fcn.8377a32f
test al, al
jne 0x8374a9b1
push dword [ebp - 0x28]
push edi
call fcn.8374b17e
xor ecx, ecx
cmp eax, ecx
je 0x8374aa4f
push eax
mov dword [ebp - 0x28], ecx
call fcn.8376effe
mov byte [ebp - 0x30], 0
jmp 0x8374aaa0
cmp dword [ebp - 0x30], ecx
jne 0x8374aa57
mov dword [ebp - 0x28], ecx
cmp dword [ebp - 0x28], ecx
je 0x8374aa49
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push dword [ebp - 0x50]
push edi
call fcn.83767a4d
mov dword [ebp - 0x34], eax
test eax, eax
jne 0x8374aa49
push eax
call dword [0x870f4184]
imul eax, eax, 0xc0
mov ecx, dword [ebx + 0x2f98]
lea eax, [eax + ecx + 0xa8]
inc dword [eax]
mov eax, 0xc000009a
jmp 0x8374acf6
cmp dword [ebp - 0x48], 0
setne byte [ebp - 0x30]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x20]
push dword [ebp - 0x58]
push dword [ebp + 0x18]
push dword [ebp - 0x4c]
call dword [ebx + 0x7c]
lea eax, [ebp - 0x54]
push eax
push 0
push dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x1c0]
call fcn.8374c717
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x8374aaef
push dword [ebp - 0x28]
lea ecx, [edi + 8]
push ecx
push eax
push ebx
mov dword [ebp - 0x3c], eax
call fcn.8374b128
test eax, eax
jne 0x8374ac71
mov eax, dword [ebp + 8]
test eax, eax
je 0x8374ac68
jle 0x8374ac90
cmp eax, 2
jle 0x8374ab17
cmp eax, 3
je 0x8374ac68
cmp eax, 6
jne 0x8374ac90
cmp dword [ebp + 0x24], 3
jne 0x8374ab2a
cmp dword [edi + 0x244], 0x64
jae 0x8374aa8e
cmp byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x48]
jne 0x8374ab36
mov eax, dword [ebp - 0x34]
push dword [ebp - 0x28]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x24]
push edi
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push eax
push esi
call fcn.8371a39b
mov esi, eax
test esi, esi
jne 0x8374ab9d
push dword [ebp - 0x28]
movzx eax, byte [ebp + 0x18]
push edi
push eax
push dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
push dword [eax + 0x224]
push 0x870387a4
push 3
call fcn.83719b38
push esi
call dword [0x870f4184]
imul eax, eax, 0xc0
mov ecx, dword [ebx + 0x2f98]
lea eax, [eax + ecx + 0xa8]
inc dword [eax]
mov dword [ebp - 0x2c], 0xc000009a
jmp 0x8374ace5
mov eax, dword [edi]
mov eax, dword [eax + 0x224]
cmp byte [eax + 0x266e], 0
je 0x8374abf0
cmp dword [ebp + 0x24], 3
jne 0x8374abf0
add edi, 0x244
inc dword [edi]
cmp dword [edi], 0x64
jne 0x8374abf0
push 0x30
push dword [0x87111e6c]
call dword [0x870f4134]
mov edi, eax
test edi, edi
je 0x8374abf0
push 0x30
push 0
push edi
call fcn.837853bf
add esp, 0xc
push edi
mov dword [edi + 0xc], 0x8000106d
call dword [0x870f4138]
mov eax, dword [ebp + 0x24]
mov cl, byte [esi + 0x10]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x28], 0
mov eax, dword [0x8710bb04]
or dword [esi + 0x3c], 0xffffffff
or dword [esi + 0x40], 0xffffffff
or byte [esi + 0x11], 1
mov dword [esi + 0x38], eax
mov al, byte [ebp - 0x30]
and cl, 0xfe
and al, 1
or cl, al
or cl, 0x98
push esi
mov dword [esi + 0x44], 0x100
mov dword [esi + 0x48], 3
mov byte [esi + 0x10], cl
push dword [ebp - 0x38]
lea eax, [ebp - 0x24]
push eax
call fcn.8371a029
inc dword [esi + 0x18]
xor ecx, ecx
lea eax, [esi + 0x14]
inc ecx
lock xadd dword [eax], ecx
mov eax, dword [ebp - 0x44]
mov dword [eax], esi
cmp dword [0x87107e34], 0
je 0x8374ace5
push esi
push dword [ebp - 0x40]
push 0
call fcn.837c7b2b
jmp 0x8374ace5
mov dword [ebp - 0x2c], 0xc0000225
jmp 0x8374ace5
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x8374ac9d
cmp ecx, 1
je 0x8374acac
jle 0x8374ac90
cmp ecx, 3
jle 0x8374ac9d
cmp ecx, 6
jne 0x8374ac90
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x8374ac99
mov dword [ebp - 0x2c], 0xc000000d
jmp 0x8374ace5
inc ecx
mov dword [eax + 0x18], ecx
cmp byte [eax + 0x58], 0
je 0x8374acb5
mov dword [ebp - 0x2c], 0xc0000022
jmp 0x8374ace5
mov dword [ebp - 0x2c], 0xc000022a
jmp 0x8374ace5
cmp dword [ebp + 0x24], 3
jne 0x8374acd6
cmp dword [eax + 0x1c], 3
je 0x8374acd6
cmp ebx, 0x87100ec0
je 0x8374ac90
mov ecx, dword [ebp + 0x28]
test ecx, ecx
je 0x8374acd6
cmp dword [ecx + 4], 0
jne 0x8374ac90
xor edx, edx
lea ecx, [eax + 0x14]
inc edx
lock xadd dword [ecx], edx
mov ecx, dword [ebp - 0x44]
mov dword [ecx], eax
cmp dword [ebp - 0x34], 0
je 0x8374acf3
push dword [ebp - 0x34]
call fcn.83789f00
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.83781dcc
leave
ret 0x30