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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push edi
mov edi, dword [ebp + 8]
test byte [edi + 0x84], 4
mov eax, dword [edi + 4]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x18], eax
je 0x8378f59d
mov dword [eax + 0x4c], 0xc000023e
jmp 0x8378fd42
mov eax, dword [edi + 0x9c]
push esi
mov esi, dword [eax + 8]
mov eax, dword [esi]
mov eax, dword [eax + 0x224]
push 0
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], eax
call dword [0x870f4184]
mov ecx, dword [esi + 0x234]
mov ecx, dword [ecx + eax*4]
imul eax, eax, 0xc0
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x2f98]
inc dword [ecx]
inc dword [eax + 0x84]
push 0
push 1
push 0
push 8
push ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
call dword [0x870f46f8]
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x8378f622
cmp dword [ebx + 0xc], 8
jae 0x8378fc12
xor eax, eax
push eax
push 4
pop ecx
bswap ecx
push ecx
push eax
push 4
push edi
push 0x871040c8
push eax
call fcn.837506c9
jmp 0x8378fc12
cmp byte [esi], 0
jne 0x8378f63d
mov eax, dword [edi + 0x20]
push 0
bswap eax
push eax
push 1
push 4
push edi
push 0x871040c8
push 0
jmp 0x8378f618
push esi
call fcn.8378f43f
push dword [ebp - 0x18]
mov edx, dword [ebx + 0xc]
movzx ecx, ax
mov eax, dword [edi + 0xa0]
sub edx, 8
push edx
push ecx
push dword [esi + 4]
mov dword [ebp - 0xc], ecx
mov cl, byte [edi + 8]
push dword [edi + 0x20]
and cl, 1
movzx ecx, cl
push ecx
push dword [eax + 0x18]
push dword [eax + 8]
push dword [edi + 0x9c]
push dword [edi + 0xbc]
push 0x29
call fcn.837948fe
cmp eax, 1
jge 0x8378fc12
movzx eax, word [edi + 0x20]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 8]
add eax, 8
cmp eax, dword [ecx + 0x14]
jae 0x8378f6ae
add dword [ebx + 0x14], 8
add dword [ebx + 0xc], 0xfffffff8
mov dword [ebx + 8], eax
jmp 0x8378f6bb
push 0
push 0
push 8
push ebx
call dword [0x870f4728]
mov eax, dword [edi + 0xc4]
add dword [edi + 0x20], 8
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 0x1c], eax
mov eax, esi
push dword [eax + 4]
push dword [ebp - 0x10]
call fcn.8378f463
mov esi, eax
test esi, esi
jne 0x8378f7eb
cmp word [ebp - 0xc], ax
jne 0x8378f727
mov esi, dword [ebp - 0x14]
test byte [esi + 3], 1
jne 0x8378f727
mov ecx, dword [ebp - 4]
add ecx, 0x3010
call dword [0x870f417c]
mov ax, word [ebp - 0x28]
mov word [edi + 0xca], ax
mov eax, dword [ebp - 0x20]
inc dword [eax + 4]
mov eax, dword [ebp - 0x24]
inc dword [eax + 0x88]
movzx eax, byte [esi]
mov dword [edi + 0x1c], eax
jmp 0x8378fd41
push dword [ebp - 8]
mov eax, dword [ebp - 0x14]
push dword [eax + 4]
mov eax, dword [ebp - 4]
push dword [ebp - 0x10]
add eax, 0x3010
push dword [edi + 0xc4]
push eax
call fcn.837940c0
mov esi, eax
test esi, esi
jne 0x8378f7da
cmp dword [0x87107e34], 1
jne 0x8378fc12
mov al, byte [0x87107e38]
cmp al, 2
jae 0x8378f76f
test al, al
jne 0x8378fc12
mov edx, dword [0x87107e20]
mov esi, dword [0x87107e24]
mov ecx, 0x80
mov eax, 0x80000040
and edx, ecx
and esi, eax
or edx, esi
je 0x8378fc12
mov edx, dword [0x87107e28]
mov ebx, dword [0x87107e2c]
mov esi, edx
and esi, ecx
mov ecx, ebx
and ecx, eax
cmp esi, edx
jne 0x8378fc12
cmp ecx, ebx
jne 0x8378fc12
push 0x87038c28
push 0x870f485c
push 0x870f4f40
push dword [0x87107e0c]
push dword [0x87107e08]
call fcn.83799739
jmp 0x8378fc12
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x90]
mov dword [esi + 0x88], eax
jmp 0x8378f801
mov ecx, dword [edi + 4]
lea eax, [esi + 0x88]
mov edx, dword [eax]
cmp edx, dword [ecx + 0x90]
je 0x8378f801
and dword [eax], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x48]
mov ecx, dword [ebp - 0x1c]
and eax, 0xfff00000
or dword [esi + 0x78], eax
mov ecx, dword [ecx]
mov eax, dword [esi + 0x78]
shr ecx, 0xc
xor edx, edx
and ecx, 3
inc edx
shl edx, cl
or edx, eax
movzx eax, word [ebp - 0xc]
mov dword [esi + 0x78], edx
mov ecx, dword [ebx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], eax
cmp ecx, 0xffff
jbe 0x8378f85b
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push esi
add eax, 0x3010
push eax
call fcn.837cd3f5
mov ecx, dword [edi + 0x20]
xor eax, eax
push eax
sub ecx, 6
jmp 0x8378f60b
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + 0x18]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
lea eax, [esi + 0x84]
push dword [ebp - 0x18]
push eax
call fcn.83794230
test eax, eax
jge 0x8378f8c0
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378f8a9
cmp byte [eax + 0x1d], 4
jb 0x8378f8a9
test byte [eax + 0x20], 0x40
je 0x8378f8a9
push 0x870fe1c4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.83796598
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push esi
add eax, 0x3010
push eax
call fcn.837cd3f5
jmp 0x8378fd2c
mov edx, dword [ebx + 0xc]
test edx, edx
jne 0x8378f8f7
cmp word [ebp - 0xc], dx
jne 0x8378f8d6
mov eax, dword [ebp - 0x14]
test byte [eax + 3], 1
je 0x8378f8f7
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378f8a9
cmp byte [eax + 0x1d], 4
jb 0x8378f8a9
test byte [eax + 0x20], 0x40
je 0x8378f8a9
push 0x870fe1c4
push 0xc
jmp 0x8378f89e
mov eax, dword [ebp - 0x14]
test byte [eax + 3], 1
jne 0x8378fa4a
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0x40]
add eax, edx
cmp ecx, 0xffffffff
je 0x8378f94d
cmp eax, ecx
je 0x8378f968
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378f8a9
cmp byte [eax + 0x1d], 4
jb 0x8378f8a9
test byte [eax + 0x20], 0x40
je 0x8378f8a9
sub ecx, dword [ebp - 0x10]
push ecx
push edx
push 0x870fe1c4
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.837ae3c7
jmp 0x8378f8a9
movzx ecx, word [esi + 0x7c]
mov dword [esi + 0x40], eax
cmp ecx, eax
ja 0x8378fa7f
movzx ecx, word [esi + 0x7e]
cmp ecx, eax
ja 0x8378fa7f
push dword [ebx + 0xc]
push 0xfff
call dword [0x870f4054]
add eax, 3
lea ecx, [ebp - 0x18]
and eax, 0xfffffffc
push ecx
push eax
push 8
mov dword [ebp - 0x28], eax
call fcn.8372c957
test eax, eax
jl 0x8378f9c1
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0xc]
push dword [ebp - 0x18]
call fcn.8372c957
test eax, eax
jl 0x8378f9c1
push 0
push 0x65725049
push dword [ebp - 0x18]
push 0
call dword [0x870f40a4]
mov edi, eax
test edi, edi
jne 0x8378faaf
mov edi, dword [ebp + 8]
cmp dword [0x87107e34], 1
jne 0x8378fa33
mov al, byte [0x87107e38]
cmp al, 2
jae 0x8378f9d7
test al, al
jne 0x8378fa33
mov edx, dword [0x87107e20]
mov ebx, dword [0x87107e24]
mov ecx, 0x80
mov eax, 0x80000040
and edx, ecx
and ebx, eax
or edx, ebx
je 0x8378fa33
mov edx, dword [0x87107e28]
mov ebx, edx
and ebx, ecx
mov ecx, dword [0x87107e2c]
and ecx, eax
cmp ebx, edx
jne 0x8378fa33
cmp ecx, dword [0x87107e2c]
jne 0x8378fa33
push 0x87038d18
push 0x870f485c
push 0x870f4f40
push dword [0x87107e0c]
push dword [0x87107e08]
call fcn.83799739
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push esi
add eax, 0x3010
push eax
call fcn.837cd3f5
jmp 0x8378fc12
test dl, 7
je 0x8378fa66
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push esi
add eax, 0x3010
push eax
call fcn.837cd3f5
jmp 0x8378f605
mov eax, dword [esi + 0x40]
cmp eax, 0xffffffff
je 0x8378f968
mov ecx, dword [ebp - 0x10]
add edx, ecx
cmp edx, eax
jbe 0x8378f968
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378f8a9
cmp byte [eax + 0x1d], 4
jb 0x8378f8a9
test byte [eax + 0x20], 0x40
je 0x8378f8a9
push 0x870fe1c4
push 0xe
jmp 0x8378f89e
mov eax, dword [ebp - 0x28]
and dword [edi + 8], 0
lea ecx, [eax + edi + 8]
mov eax, dword [ebx + 0xc]
mov edx, eax
mov dword [ebp - 0x1c], ecx
and edx, 0xfff
shr eax, 0xc
and ecx, 0xfff
lea edx, [edx + ecx + 0xfff]
shr edx, 0xc
add edx, eax
lea eax, [edx*4 + 0x1c]
mov word [edi + 0xc], ax
xor eax, eax
mov word [edi + 0xe], ax
mov eax, dword [ebp - 0x1c]
and eax, 0xfffff000
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], ecx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x1c], eax
lea eax, [edi + 8]
push eax
call dword [0x870f4104]
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebp - 4]
push eax
add eax, 0x100
push eax
add ecx, 0x3010
push esi
push ecx
mov dword [ebp - 4], ecx
call fcn.8379443f
mov ax, word [ebx + 0xc]
mov ecx, dword [ebp - 0xc]
and dword [edi], 0
mov word [edi + 4], ax
mov word [edi + 6], cx
movzx eax, word [esi + 0x7c]
cmp cx, ax
jne 0x8378fcd2
cmp dword [esi + 0x44], 0
jne 0x8378fc82
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x44], edi
mov al, byte [eax]
mov byte [esi + 0x82], al
mov eax, dword [ebp + 8]
mov ax, word [eax + 0x20]
sub ax, 0x30
mov word [esi + 0x3c], ax
je 0x8378fc62
push 0
movzx eax, ax
push 0x65725049
push eax
push 0
call dword [0x870f40a4]
mov dword [esi + 0x38], eax
test eax, eax
jne 0x8378fc26
cmp dword [0x87107e34], 1
jne 0x8378fc03
mov al, byte [0x87107e38]
cmp al, 2
jae 0x8378fba9
test al, al
jne 0x8378fc03
mov edx, dword [0x87107e20]
mov edi, dword [0x87107e24]
mov ecx, 0x80
mov eax, 0x80000040
and edx, ecx
and edi, eax
or edx, edi
je 0x8378fc03
mov edx, dword [0x87107e28]
mov ebx, dword [0x87107e2c]
mov edi, edx
and edi, ecx
mov ecx, ebx
and ecx, eax
cmp edi, edx
jne 0x8378fc03
cmp ecx, ebx
jne 0x8378fc03
push 0x87038cae
push 0x870f485c
push 0x870f4f40
push dword [0x87107e0c]
push dword [0x87107e08]
call fcn.83799739
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call fcn.837cd3f5
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
inc dword [eax + 8]
mov eax, dword [ebp - 0x24]
inc dword [eax + 0x8c]
jmp 0x8378fd2c
movzx eax, word [esi + 0x3c]
push eax
push eax
push esi
push dword [ebp - 4]
call fcn.8379443f
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
movzx eax, word [esi + 0x3c]
push eax
mov eax, dword [ebx + 0x14]
sub eax, dword [ecx + 0x20]
push dword [esi + 0x38]
add eax, 0x28
push eax
push dword [ebx + 0x10]
call fcn.8373e2be
mov eax, dword [ebp + 8]
mov ax, word [eax + 0xca]
jmp 0x8378fc65
push 6
pop eax
mov word [esi + 0x80], ax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc4]
mov ecx, dword [eax]
mov dword [esi + 0x50], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x54], eax
jmp 0x8378fc87
mov eax, dword [esi + 0x48]
mov dword [eax], edi
mov dword [esi + 0x48], edi
mov ax, word [ebx + 0xc]
add word [esi + 0x7c], ax
jmp 0x8378fcb6
mov cx, word [eax + 6]
cmp cx, word [esi + 0x7c]
jne 0x8378fcc3
mov ecx, dword [esi + 0x48]
mov dword [ecx], eax
mov dword [esi + 0x48], eax
mov cx, word [eax + 4]
add word [esi + 0x7c], cx
mov ecx, dword [eax]
mov dword [esi + 0x4c], ecx
and dword [eax], 0
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x8378fda9
jmp 0x8378fc94
mov ax, cx
cmp ax, word [esi + 0x7c]
ja 0x8378fda9
jmp 0x8378fcf3
cmp word [ebp - 0xc], ax
ja 0x8378fd48
movzx ecx, word [edi + 4]
add ecx, dword [ebp - 0x10]
movzx eax, ax
cmp ecx, eax
jle 0x8378fe05
push 0
push edi
call dword [0x870f434c]
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378fd1d
cmp byte [eax + 0x1d], 4
jb 0x8378fd1d
test byte [eax + 0x20], 0x40
je 0x8378fd1d
push 0x870fe1c4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.83796598
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call fcn.837cd3f5
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
je 0x8378fd3a
mov dword [eax + 0x4c], 0xc000021b
mov dword [edi + 0x1c], 0x3b
pop esi
pop edi
pop ebx
leave
ret 4
lea ecx, [esi + 0x4c]
mov eax, dword [ecx]
mov dword [ebp - 0x24], ecx
jmp 0x8378fd7b
movzx ecx, word [eax + 6]
cmp cx, word [ebp - 0xc]
ja 0x8378fd8d
jae 0x8378fdf7
movzx edx, word [eax + 4]
movzx ecx, cx
add edx, ecx
cmp edx, dword [ebp - 0x10]
jg 0x8378fcea
mov ecx, eax
mov dword [ebp - 0x24], eax
mov eax, dword [eax]
test eax, eax
jne 0x8378fd52
mov ax, word [edi + 4]
add ax, word [ebp - 0xc]
mov word [esi + 0x7e], ax
jmp 0x8378fda3
movzx ecx, word [edi + 4]
movzx eax, word [eax + 6]
add ecx, dword [ebp - 0x10]
cmp ecx, eax
jg 0x8378fcea
mov ecx, dword [ebp - 0x24]
mov eax, dword [ecx]
mov dword [edi], eax
mov dword [ecx], edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebx + 0xc]
push dword [ebp - 0x1c]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
call fcn.8373e2be
movzx eax, word [esi + 0x7c]
push dword [ebp - 8]
push esi
cmp eax, dword [esi + 0x40]
jne 0x8378fdd6
mov esi, dword [ebp + 8]
push esi
call fcn.8378fe4b
jmp 0x8378fde1
push dword [ebp - 4]
call fcn.83793fe7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov dword [eax + 0x4c], 0xc0000240
mov dword [esi + 0x1c], 0x3b
jmp 0x8378fd41
mov cx, word [edi + 4]
cmp cx, word [eax + 4]
jne 0x8378fcea
mov eax, dword [0x87100000]
cmp eax, 0x87100000
je 0x8378fe2f
cmp byte [eax + 0x1d], 4
jb 0x8378fe2f
test byte [eax + 0x20], 0x40
je 0x8378fe2f
push 0x870fe1c4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.83796598
push 0
push edi
call dword [0x870f434c]
lea ecx, [esi + 0x18]
call dword [0x870f417c]
jmp 0x8378fd29